Skip to content
systemcoding.dev
Mainframe

The Complete Guide to z/OS Abend Codes and How to Fix Them

Read z/OS abend codes like a debugger: system and user abends, the messages and dumps that explain them, the common codes by cause, and a triage method.

24 min read
Summarize in AI
Flat illustration of a 3270 terminal showing JCL beside a mainframe.

A batch job on z/OS ends one of two ways. It returns a condition code, a small number the program chose, or it abends: the system or the program stops it in the middle with a code that says why. The first is a conversation. The second is a crash, and the code is the first line of the post-mortem. A developer who can read an abend code, find the instruction that caused it and name the fix in fifteen minutes is worth a great deal in any mainframe shop, because most of the abends a team sees in a year are the same dozen causes. This guide builds that skill for z/OS 3.1 and Enterprise COBOL for z/OS 6.4: what an abend is, how the system reports it, where the evidence lives, how to read a dump far enough to answer the question, a table of the codes you will meet most with the first thing to check for each, how Language Environment changes what you see, how to prevent the common ones with compiler options, and how to handle abends in JCL and programs. It is the hub of this site's abend and debugging posts, each of which takes one code or one tool further.

What an abend is

"Abend" is short for abnormal end. When a task cannot continue, the system or a program issues an ABEND, which ends the task, optionally takes a dump, runs recovery routines, and reports a completion code. The completion code is what the job log shows, and it comes in two kinds.

A system completion code is three hexadecimal digits, shown with an S prefix: S0C7, S806, SB37. The operating system, or a system service on behalf of your program, issued it. System codes are documented in the z/OS MVS System Codes manual, and most have a reason code that narrows the cause, shown in a message alongside or in the dump.

A user completion code is a decimal number from 0 to 4095, shown with a U prefix and four digits: U0016, U4038. A program issued it, either your own through an ABEND call or CEE3ABD, or a product such as Db2, IMS or Language Environment. The meaning of a user code belongs to whoever issued it. U0016 in your shop's program means what the author decided, and the same number from a vendor product means what its manual says.

The difference matters for where you look first. For a system code you read the system manual. For a user code you ask who issues it: the application, Language Environment (whose abends often start at 4000), a database product or the scheduler.

Where the evidence is

An abend leaves a trail in four places. Learn to read them in this order.

The job log

The first record is in the job's message log (JESMSGLG), where the system writes a line for the step that abended:

Text
IEF450I PAYRPT RUNPAY - ABEND=S0C7 U0000 REASON=00000007
        TIME=02.14.37

ABEND=S0C7 U0000 is the completion code, S0C7 in this case, with no user code (U0000). The REASON field holds the reason code, here 7, which for a program check is the interruption code. A user abend shows as ABEND=S000 U4038 with the system part zero. The step name is next to the job name, so you know which step. A line IEF472I follows in some configurations with the job's cleanup status. If the job log is long, search for IEF450I first.

The messages from the failing program and its runtime

For a COBOL program running under Language Environment, the runtime usually writes a message of its own to SYSOUT or CEEMSG before the system code is reported, and that message is clearer:

Text
CEE3207S The system detected a data exception (System Completion Code=0C7).
         From compile unit PAYRPT at entry point PAYRPT at statement 87
         at compile unit offset +000002A6 at address 1B7F54A6.

It names the compile unit, the entry point, the statement number if the program was compiled with the right options, and the offset of the failing instruction. That one message often answers "where". For failures in the system's I/O routines, the access method writes its own message, such as IEC141I 013-18 for an OPEN failure, which names the reason.

The dump

A dump is a copy of storage and registers at the moment of the abend. Which dump you get depends on the DD statements in the step.

DD nameWhat it givesFormat
SYSUDUMPThe program's storage and registersFormatted, readable in a browser
SYSABENDSYSUDUMP plus the system nucleus areasFormatted
SYSMDUMPA full machine-readable dumpUnformatted, read with IPCS
CEEDUMPA Language Environment dump with traceback, variables and storageFormatted, written when LE is asked

A job with none of these gets no dump, and a diagnosis then depends on the messages alone. For development and for any job that has abended before, include SYSUDUMP as SYSOUT=*. For production, an installation often sets the dump DD in a procedure or uses automatic dump options, so ask what your site does.

The source and the listing

The final piece is your own: the compile listing of the program that abended, with the options that map a machine offset to a source statement. A COBOL listing with the LIST or OFFSET option, or with MAP, lets you take the offset from the message or the PSW and find the statement. Keep the listing of what is in production, with a way to retrieve it: a dump without a listing that matches the load module is a puzzle with half the pieces.

Reading the essentials of a dump

A dump is thousands of lines, and an abend usually needs five facts from it.

The completion code and reason code. In the header of the dump, as in the job log.

The PSW. The program status word is two words that say where the program was executing. The address in the second word, the instruction address, points just after the instruction that failed for most program checks. A PSW looks like this in a formatted dump:

Text
PSW AT TIME OF ERROR  078D1000  9B7F54A6  ILC 4  INTC 0007
  DATA AT PSW  1B7F54A0 - F8350000  A0000000  0000
  AR/GR 0: 00000000/00000000   1: 00000000/9B7F5300
        2: 00000000/9B7F4010   3: 00000000/1B7F5F90
        ...

INTC 0007 is the interruption code, 7 for a data exception, which is the same code as in S0C7. ILC 4 is the instruction length code, the length of the failing instruction: for a length of 4 bytes, the instruction starts 4 bytes before the address in the PSW. The high bit of the address word (here 9B7F54A6) is the addressing mode bit, so the address is 1B7F54A6, which matches the address in the LE message above.

The failing instruction and its offset. Subtract the entry point address of the load module from the address of the failing instruction to get the offset into the module. The dump lists load module addresses in a section named for the modules in the program's storage, and Language Environment gives the offset directly in its message. The offset is then looked up in the compile listing.

The registers. General registers 0 to 15 at the time of failure. Register 14 holds the return address, 15 the entry point of the called program, 13 the save area, and 1 the parameter list. COBOL uses these by convention, and the registers named in the failing instruction show what it was trying to read.

The data being used. For a data exception, the packed or zoned field; for an addressing error, the address that was wrong. Both are found by looking at the registers and the storage near them in the dump.

An abend in a long dump is easier to follow with a method than by paging. Find the code and PSW, convert the PSW to a module and offset, map to a statement, then read the data the statement used.

The program check family: S0Cx

The S0C codes are program interruptions, raised by the hardware when an instruction cannot complete. Every one of them is a bug in the program, or in the data it was handed. They are the most frequent abends in application code.

CodeNameTypical cause in COBOL
S0C1Operation exceptionBranch to garbage: a call to a program that was not loaded, a bad GO TO DEPENDING, a corrupted return address
S0C2Privileged operationAn attempt to run a privileged instruction in problem state, often from executing data
S0C3Execute exceptionAn EXECUTE instruction target error, rare in application code
S0C4Protection or addressing exceptionA reference to storage that is not yours or not there: subscript out of range, bad pointer, unopened file, a wrong parameter list
S0C5Addressing exceptionAn address outside the available storage, from a damaged address or a bad pointer
S0C6Specification exceptionA misaligned operand or an invalid register pair, often from a bad CALL linkage
S0C7Data exceptionNon-numeric data in a numeric field: the most common abend in COBOL
S0C8Fixed-point overflowA binary arithmetic result too large for the field
S0C9Fixed-point divideDivide by zero, or a quotient that does not fit, in binary arithmetic
S0CADecimal overflowA packed arithmetic result too large for its field
S0CBDecimal divideDivide by zero in packed arithmetic
S0CCExponent overflowFloating-point result too large
S0CFFloating-point divideFloating-point divide by zero

The two to master are S0C7 and S0C4. Fix an S0C7 data exception in a COBOL batch job takes the first through a worked example, and fix an S0C4 protection exception in a z/OS program the second. The rest follow the same method: find the statement, find the data, find why the data was bad.

A word on S0C8, S0C9, S0CA and S0CB. COBOL normally guards divide with ON SIZE ERROR. A divide or compute that has no ON SIZE ERROR clause on a size error behaves according to the compiler's options and may abend, or may truncate the result silently, which is worse, because no error shows. Add ON SIZE ERROR to every arithmetic statement where an overflow or a zero divisor is possible, and handle it.

Storage, space and access: the common S-codes outside the program checks

Most of the remaining system abends a developer meets concern resources: the program could not be found, there was not enough memory, a dataset ran out of space, or the system refused the access.

CodeMeaningFirst check
S013OPEN failedThe IEC141I 013-xx message names the reason; xx = 18 is a PDS member that is not found, and others relate to attributes (RECFM, LRECL, BLKSIZE)
S0E0Invalid storage requestA GETMAIN, FREEMAIN or STORAGE call with bad parameters
S122Operator cancel with dumpA person or automation cancelled the job: ask who and why
S222Operator cancelThe job was cancelled with no dump
S322CPU time limit exceededThe step used more CPU than the job's TIME limit allows, or a loop
S522Wait time limit exceededThe job waited longer than the system's time for a resource, such as a tape or dataset enqueue
S722Output line limit exceededThe SYSOUT exceeded the LINES limit from the JOB statement or the system
S806Program not foundThe load module is not in STEPLIB, JOBLIB or the link list; see program search order
S80AGETMAIN failedThe region size is too small for what the program requested
S837End-of-volume errorUsually follows another space message: check the SYSLOG messages
S878Not enough virtual storageThe region is too small, or a table in the program is larger than the region allows
S913Security access deniedRACF or another security product refused access: the ICH408I message names the dataset and the user
SB37Out of space on a volumePrimary or secondary allocation filled the volume, or no more extents
SD37Primary space full and no secondaryThe data set has no secondary quantity
SE37No more volumesThe data set needed another volume and could not get one

Three of these cover the bulk of the day-to-day. S806, program not found, is a library problem: the program name is spelled differently from its member, the library is not concatenated, or the job runs under a different set of libraries from the one you tested. SB37, SD37 and SE37, the space family, are allocation problems, fixed by a larger or secondary space quantity or by changing how the data set is allocated, and calculate dataset space in tracks and cylinders from record counts shows how to size it. S913 is a security matter, so the fix is a permission, requested through your security team, not a change in your program.

Language Environment and its user abends

Most COBOL programs run under Language Environment (LE), the runtime that provides storage management, condition handling and the runtime messages. LE sits between your program and the system. When something goes wrong, LE often catches the condition first, writes a message with a prefix CEE or IGZ, and then ends the program with an abend that it chooses.

The CEE3207S message above is LE reporting a program check. The abend that follows is the system code, S0C7, because LE's default for a program check in application code is to pass it on. LE can also issue its own user abends, in the range starting around 4000, for conditions that it treats as severe errors. A few are common.

AbendCause
U4038LE found an unhandled condition of high severity while the option ABTERMENC(ABEND) was in effect, and ended the job with an abend; the CEE message before it names the original condition
U4093LE could not initialize its environment, for example because a runtime library is missing from STEPLIB; the reason code says which routine failed

Do not trust a table of U4xxx codes from memory, since the meaning also depends on the reason code given with the abend. The CEE3250C message states "The system or user abend U4038 R=00000001 was issued", with the reason, and the Language Environment Runtime Messages manual explains the combination. Treat the CEE and IGZ messages before the abend as the authority, and the number as a pointer.

Language Environment options change what you see. TRAP(ON) is the default and lets LE intercept program checks and format a message. TERMTHDACT(DUMP) asks for a CEEDUMP on a condition, or UADUMP for a system dump as well. ABTERMENC(ABEND) makes LE end the job with an abend, rather than a return code, when an unhandled condition occurs. A run with RPTOPTS(ON) prints the options in effect, which is the first thing to check when a job behaves differently from the one that ran last week.

A CEEDUMP is the most readable dump for an application programmer. It lists the call chain (the traceback), the failing statement and offset, the working storage values of the program and the runtime options, in a form you can read without IPCS. A request for it is CEE3DMP from the program, or TERMTHDACT(DUMP) in the options.

User abends in your own programs

A program can end itself with an abend, and some shops do it deliberately to force operators to notice. In COBOL under LE the call is CEE3ABD:

ABENDME.cblcobol
       IDENTIFICATION DIVISION.
       PROGRAM-ID. ABENDME.
       DATA DIVISION.
       WORKING-STORAGE SECTION.
       01  WS-ABCODE           PIC S9(09) COMP VALUE 1234.
       01  WS-CLEANUP          PIC S9(09) COMP VALUE 1.
       PROCEDURE DIVISION.
           DISPLAY 'CONTROL TOTALS DO NOT MATCH, ABENDING'
           CALL 'CEE3ABD' USING WS-ABCODE WS-CLEANUP
           GOBACK.

The run prints the message, then the job log shows the completion code as a user abend:

Text
CONTROL TOTALS DO NOT MATCH, ABENDING
IEF450I ABENDME RUN - ABEND=S000 U1234 REASON=00000000

The first parameter is the abend code, 1234 here, between 0 and 4095. The second is the clean-up option, whose values and effect on Language Environment termination processing are defined in the CEE3ABD reference. A user abend is a legitimate tool, and a poor one for ordinary errors: a return code that a following step tests is easier to handle in JCL than an abend. Reserve abends for conditions where continuing would damage data, and document the codes in the program's header and in the operations runbook, so the person called at night knows what U1234 means.

A worked example from message to statement

A walk through one abend shows how the pieces fit. The job PAYRPT abends in step RUNPAY, and the output holds this message:

Text
CEE3207S The system detected a data exception (System Completion Code=0C7).
         From compile unit PAYRPT at entry point PAYRPT at statement 87
         at compile unit offset +000002A6 at address 1B7F54A6.

The first fact is the code: a data exception, S0C7, which means a numeric instruction found data that is not valid for its type. The second is the location: statement 87 of the compile unit PAYRPT, at offset 2A6 from its start. If the program was compiled with OFFSET or LIST, the compile listing has a table that maps statement numbers to offsets. The relevant part of the listing reads like this:

Text
LineID  PL  SL  Source
  000085        MOVE IN-QTY TO WS-QTY
  000086        MOVE IN-PRICE TO WS-PRICE
  000087        COMPUTE WS-TOTAL = WS-QTY * WS-PRICE
  000088        ADD WS-TOTAL TO GRAND-TOTAL

The listing's offset table puts statement 87 at offset +00029C, and the failing instruction at +0002A6 falls inside it, so the COMPUTE on line 87 is the statement. The listing layout and the column names differ between compiler options, but the principle is stable: statement number in the message, line in the listing.

The third step is the data. The statement multiplies WS-QTY by WS-PRICE, so one of them holds bytes that are not valid packed decimal. The data map in the listing, from the MAP option, gives their locations in working storage, for example WS-QTY at displacement 0000A0 and WS-PRICE at 0000A4. In a formatted dump or a CEEDUMP, the working storage section shows the contents of those fields in hexadecimal:

Text
WS-QTY    000000A0   00 12 5C
WS-PRICE  000000A4   40 40 40 40

WS-QTY holds 00 12 5C, a valid packed number, 125 positive, because the last half-byte C is a valid plus sign. WS-PRICE holds four bytes of hexadecimal 40, the EBCDIC space character, which is not a valid packed decimal: the last half-byte must be a sign (C, D, F, and for some forms A, B, E), and 0 is not one. That is the data exception. The cause is now a question about data, not code: why does WS-PRICE hold spaces? The statement before it, line 86, moves IN-PRICE, a field of the input record. A record in the input file has spaces where the price should be, either because the file was produced by a program that wrote spaces for a missing value, or because the record layout shifted by a column.

Two fixes follow, and a careful team applies both. The program should validate its input and report the bad record instead of abending: IF IN-PRICE IS NUMERIC before the move, with a reject path that writes the record to an error file and counts it. And the upstream cause should be found, which is a different team's work: the file that produced spaces. Fixing only the program hides a data quality problem, and fixing only the data leaves the program one bad record away from the same abend. Fix an S0C7 data exception in a COBOL batch job takes this further, and inspect packed decimal fields in a dataset with ISPF HEX ON shows how to find such records in the input file itself.

When the listing does not match

A frequent obstacle is a listing that is not for the load module that failed. The program was recompiled after the failure, or the listing came from a test build with different options, and statement 87 is now a different line. Protect against it by keeping the listing in a library keyed by load module and build date, by compiling with an option that records a build identifier in the module (the DATA section can carry a version literal that the program displays at start), and by checking the compile date and time in the dump's module information against the listing's header. If you cannot match them, rebuild the program from the source version that was in production, with the same options, and compare the module sizes before trusting statement numbers.

Offsets without the compiler's help

If the program was compiled without OFFSET, the LE message gives only the offset into the compile unit. You can still find the statement by looking at the generated assembler listing, which the LIST option prints, with the offset of each machine instruction and the source statement it came from. It is the same method, with a longer table. For a program with no listing at all, the dump shows the instruction bytes at the failing address, and a disassembler or the LIST of a rebuilt copy gives the instruction, from which you reason back to the field. It is slow, and the reason to keep listings.

Keeping an abend log

A shop that treats each abend as a one-time event relearns the same lessons. A simple log, kept by the support team, pays back: the job, step, date, completion and reason code, the cause in a sentence, the fix, and who made it. After a few months, patterns show: the same file feeding three jobs that abend on it in turn, a library with the wrong concatenation order, an input from a vendor whose layout changes without notice. Those patterns point at fixes that no single abend would justify, such as a validation job at the front of the stream that checks every input once, so no later step meets bad data.

The runbook for each production job should state, for its likely abends, who to call, whether a restart is safe, and what to check first. A new support analyst reading a runbook that says "S0C7 in step 3 means a bad record in the vendor file: run the validation job, send the reject report to the vendor, and restart from step 3" resolves the night's failure in minutes, not hours. That text is a short list of facts that only the people who have fixed the job before can write, and it belongs next to the job's schedule, where the person on call will find it.

Restart decisions

An abend leaves the question of what to do next. Three cases cover most jobs.

The job is restartable from the failed step: earlier steps completed and left their outputs, and the failed step wrote nothing durable or can be rerun over its output. The scheduler can restart at that step after the cause is fixed, with RESTART=stepname on the JOB statement or through the scheduler's restart function.

The job is restartable only from the beginning: the failed step modified data that a rerun would modify again, so the changes have to be undone first. Examples are a step that appended to a master file, or one that applied database updates without commit control. The cleanup is part of the runbook, a restore from a backup taken in an earlier step or a reverse job.

The job is self-restarting: it takes checkpoints, as in a DB2 batch with a restart table or an IMS BMP, and a rerun with the same JCL resumes where it stopped. That is the best case, and the reason for the commit and checkpoint techniques in commit long batch jobs safely with cursors WITH HOLD and use checkpoint and restart in IMS BMP programs.

Design jobs to be the third kind where the data allows, and document which kind each one is when it does not.

A triage method that works

When a job abends, a fixed order of questions saves time. This is the method experienced support staff follow, written down.

  1. Read the completion code and the reason code in the IEF450I line. Decide whether it is a program check (S0Cx), a resource code (S806, SB37, S913, S80A), an operator or limit code (S122, S222, S322, S522, S722) or a user code (Unnnn).

  2. Read the messages just before it in the job log and the program's output: CEE and IGZ messages, IEC messages for datasets, ICH for security, CSV for program loading, and DSN for Db2.

  3. Decide whether the program or the environment changed. Ask what is different from the last good run: the data, the program version, the JCL, the libraries, the region size, the dataset sizes, the security profile. Most abends of a long-running job are caused by new data or a new input file.

  4. For a program check, get the statement. Take the statement number from the LE message or compute the offset, and read the statement in the compile listing that matches the load module in use.

  5. Read the data that statement used. Find the field in the dump, or print it in a rerun with a display, and ask what the program expected and what it got.

  6. Fix the cause, not the symptom. A data exception is fixed in the program that wrote the bad data as often as in the one that read it.

  7. Rerun safely. Check what the failed run left behind: partially written output datasets, uncommitted database changes, held enqueues, and a catalog entry for a dataset created in the failed step. A restart that ignores them can double-process or fail again.

The method is the same for a batch job that abends at 3 a.m. and for a test failure. What changes is who you can call, and the decision whether to rerun now or wait.

Preventing the common abends

Many abends are prevented at compile time, with options and habits.

Compile with the options that map failures to statements. For Enterprise COBOL 6.4: LIST or OFFSET for the offset map, MAP for the data map, and TEST options in non-production builds for debugging with z/OS Debugger. Keep the listing with the load module, so a production abend can be mapped to source. A build that does not keep listings has lost its evidence.

Check numeric data. NUMCHECK(ZON,PAC) is a compiler option in Enterprise COBOL 6.3 and later that generates code to validate zoned and packed decimal data when it is used, and fails with a clear message instead of a bare S0C7 deep in arithmetic. It costs processing time, so many shops use it in test and in selected production programs. Without it, validate input with IF field IS NUMERIC before use.

Check subscripts. The SSRANGE option generates checks for table subscripts, reference modification and indexes, and fails with message IGZ0006S at the offending statement instead of overwriting storage and abending later with a puzzling S0C4. It is a cost that is commonly paid in test and not in production, and the decision belongs to the team.

Initialize storage. Use INITIALIZE for group items, VALUE clauses for single items, and the INITIALIZE compiler option or LE's STORAGE(00,...) to set working storage to a known value, so an uninitialized field is zero or space, not whatever was in memory. A program that passes tests because storage happened to hold zeros fails in production when it does not.

Guard arithmetic. Use ON SIZE ERROR on COMPUTE, DIVIDE, ADD and MULTIPLY where a result can overflow or a divisor can be zero.

Size regions and datasets with headroom. REGION=0M lets a job take what it needs where the installation allows it. Dataset sizes should come from the volumes the data actually has, with room for growth, and with secondary extents.

Handling abends in JCL

The job stream can react to an abend without a human. JCL's IF statement tests the outcome of earlier steps:

ABENDIF.jcljcl
//CLEANUP  JOB (ACCT),'ABEND HANDLING',CLASS=A,MSGCLASS=X
//PAYRPT   EXEC PGM=PAYRPT
//SYSOUT   DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//         IF (PAYRPT.ABEND) THEN
//NOTIFY   EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1   DD *
PAYRPT ABENDED, SEE JOB LOG
/*
//SYSUT2   DD SYSOUT=*
//SYSIN    DD DUMMY
//         ENDIF

PAYRPT.ABEND is true when the step ended with an abend, and PAYRPT.ABENDCC can test for a specific code, as in PAYRPT.ABENDCC = S0C7. The ordinary COND parameter on a following step does not run after an abend unless it is coded to, because after an abend later steps are bypassed by default, which is why the IF form is the one to use for cleanup. Run steps conditionally on abends with IF ABEND and ABENDCC covers the full set of tests.

Inside a program, a recovery routine can catch the abend before the task ends, and the program can write a message, close files or free resources. Assembler programs use ESTAEX, as in recover from abends with ESTAEX recovery routines, and LE programs use condition handlers registered with CEEHDLR. Recovery needs care, because the failing code has left the program in an unknown state and a recovery routine that continues as if nothing happened can corrupt data. The usual sound use is cleanup and a controlled end.

Abends from the products

Products running on z/OS issue their own codes.

Db2 reports S04E and S04F with reason codes for subsystem-level problems and writes DSNT and DSNV messages with the detail. A Db2 abend inside an application's thread is usually a bind or authorization problem returned as an SQLCODE, not an abend, so the SQLCODE posts are the first stop, in Db2 for z/OS SQLCODE cheat sheet for developers.

CICS ends a failed transaction with a four-character abend code. ASRA is a program check in the application program, the CICS form of an S0Cx, and the diagnosis is the same as above using the CICS transaction dump. AICA is a runaway task that exceeded its time limit, ASRB is an operating system abend under the task, and AEIA and similar are exceptional conditions raised by EXEC CICS commands without a handler.

IMS issues user abends in the U0xxx range for application failures, such as a failed call without a status check, with messages in the DFS series that explain them, and backs out the unit of work, as described in the complete guide to IMS database and transaction manager basics.

For any of these, the product's messages and codes manual is the authority, and the number alone is never enough.

When this approach is not enough

Four situations need more than this guide.

A system abend that is not in your program, such as a repeating S0C4 in a vendor module, S0D3 or S0F3, belongs to the product's support: collect the dump, the job log and the modification levels, and open a case. Reading it further is possible with IPCS, but it is a skill of its own.

An intermittent abend that does not reproduce needs more data, not more thought: turn on SYSMDUMP or a CEEDUMP for the job, log the inputs, and wait for the next failure. A dump from the failing run is worth more than any theory.

A storage overlay, where the program damaged its own storage earlier and abends later in unrelated code, is not found at the abend point. Use SSRANGE, storage-check options such as LE's STORAGE and HEAPCHK, and the debugger with watchpoints to find the first bad write.

A performance abend such as S322 can be a loop or a long job with too small a time limit. Check the elapsed CPU in the job log before assuming a loop, with measure batch job CPU and elapsed time from SMF and job logs.

Where the authority lives

The full list of system codes is in the z/OS MVS System Codes manual. The runtime messages are in the Language Environment Runtime Messages manual. Both are on the IBM Documentation site, where each code has an explanation, a system action and a programmer response. Learn the dozen in this guide by heart, and look up the rest, every time, because the reason code often changes the answer.

Also inDebugging
Share

Keep reading

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.