Sie sind auf Seite 1von 12

JCL Abend Codes S0CB S002 Attempting to divide by 0 and not using ON SIZE ERROR Very large record

length/ wrong record length

Sx22 Job has been cancelled. The value of x will vary depending on the w ay the job was cancelled. S222 Means job was cancelled by a user or operator without a dump. If a TSO session times out you will probably get an S522 abend code. S222 The job was cancelled (by subsystem or operator) because it violate d some restriction S322 Indicates a Time Out abend. Program has taken more CPU time than th e default limit for the JOB Class could indicate an infinite loop S522 JOB or TSO session exceeded maximum job wait time OR operator did n ot mount the require tape within allowed time limit S806 S837 S913 use. Load module not found Space problem, Allotted space is not enough for data set You are trying to access a dataset, which you are not authorized to

S0C1 Operation Exception. Check for subscript errors, missing DD card, f ile not opened. (Missing / Misspelled DD name, Read / Write to un-opened dataset, Read to da taset that opened in OUTPUT mode, Write to dataset that opened in INPUT mo de. Called sub-program not found) SOC4 1. Index exceeds the size of table

2. Trying to use File Section variables without opening the file (Missing Select statement (during compile), Bad Subscript / index, Protecti on Exception, Missing parameters on called sub-program, Read / Write to un-opened file , Move data from / to un-opened file) SOC5 1. Bad Subscript / Index

2. Close an un-opened dataset 3. Bad exit from a perform statement SOC7 1. Moving non-numeric value to numeric field 2. Not initializing the numeric variables before first use

SB37 ed) SD37 SE37 U1026 U1056

Insufficient disk space (End of volume and no further volume specifi Insufficient disk space. (No secondary allocation was specified) Insufficient disk space. (Max. of 16 extents already allocated) COBOL sort failed. Program didn't close a file before ending

DB2 Return Codes

00 +100 -104

Successful End of cursor / Successful Row not found SQL Syntax Error String representation of DATE, TIIME, TIMESTAMP is invalid Object not defined to DB2 / Table or Column not found Column name not in specified DB2 table Column does not exist in any table in the SELECT Type mismatch error Fetch without opening the Cursor Referential Integrity Error Not authorized to access DB2 Unique index violation. Try to insert duplicate record (Dup Invalid Plan. DBRM or PACKAGE not found in PLAN

-180 to -189 / format error -204 -205 -206 -

-302 to -309 -501 -530 to -551 542 -

-803 licate Error) -805 -

-811 Cursor should be used, when more than one row returned as a result of a singleton SELECT query -818 -904 -911 -913 -923 Timestamp mismatch between plan and load module Resources not found Deadlock with rollback Deadlock without rollback DB2 Down

-925

SQL commit used in CICS program

VSAM File Status Codes

00 02 04 05 10 20 21 22

SUCCESSFUL COMPLETION DUPLICATE KEY, NON-UNIQUE ALT INDEX READ, WRONG LENGTH RECORD OPEN, FILE NOT PRESENT END OF FILE INVALID KEY VSAM KSDS OR RRDS SEQUENCE ERROR, ON WRITE OR CHANGING KEY ON REWRITE DUPLICATE KEY RECORD NOT FOUND - (when we are trying to access a record

23 with key)

or FILE NOT FOUND 35 OPEN, FILE NOT PRESENT

When we will use this code in our program? There are situations where file should be read if exist, write if it does not when you don t know whether file exists are not, first you will open file in I-O mode and check status code. if it is 35 then open that file for output file. Other wise you will continue with your logic 39 41 42 43 46 47 48 49 LOGIC ERROR OPENING A FILE THAT IS ALREADY OPENED CLOSEING A FILE WITHOUT OPEN. DELETE OR REWRITE & NO GOOD READ FIRST SEQUENTIAL READ WITHOUT POSITIONING READING FILE NOT OPEN AS INPUT/IO/EXTEND WRITE WITHOUT OPEN IN IO MODE DELETE OR REWRITE WITHOUT OPEN IN IO MODE LOGIC ERROR / OPENING A OPEN FILE / READING OUTPUT FILE

92 / WRITING INTO

A INPUT FILE / DEL or REW BUT NO PRIOR READ 94 R FOR SEQ SEQUENTIAL READ AFTER END OF FILE / NO CURRENT REC POINTE

96 97

MISSING DD STATEMENT IN JCL OPEN OK, FILE INTEGRITY VERIFIED

When we will use this in our programs? We use this code whenever we open the file, if status code is 00 or 97 we will proceed with our logic, other wise, call error routine. Usually, it may come when file was not closed. for example,

IF WS-FILE-STATUS NOT = '00' AND '97' PERFORM ERROR-ROUTINE END-IF.

CICS Abend / Error Codes Code Condition Code Condition Code Condition Code Condition AEIA ERROR AEIR NOSPACE AEYA

INVERRTERM AEYU IGREQCD AEID EOF AEIS NOTOPEN AEYB INVMPSZ AEYV SESSIONERR AEIE EODS AEIT ENDFILE AEYC IGREQID AEYY NOTALLOC AEIH INBFMG

AEIU LENGERR AEYG JIDERR AEYZ CBIDERR AEII NONVAL AEIW QZERO AEYH QIDERR AEY1 INVPARTNSET AEIJ NOSTART AEIZ ITEMERR AEYJ DSSTAT

AEY2 INVPARTN AEIK TERMIDERR AEIO PGMIDERR AEYK SELNERR AEY3 PARTNFAIL AEIL DSIDERR AEI1 TRANSIDERR AEYL FUNCERR AEIM NOTFND AEI2 ENDDATA AEYM

UNEXPIN AEIN DUPREC AEI3 INVTSREQ AEYN NOPASSBKRD AEIO DUPKEY AEI8 TSIOERR AEYO NOPASSBKWR AEIP INVREQ AEI9 MAPFAIL AEYR ISCINVREQ AEIQ

IOERR AEXL DISABLED AEYT ENVDEFERR JCL ABEND Codes Complete List: CICS ABEND Codes CODE AEIA AEID AEIE AEIH AEII AEIJ AEIK AEIL AEIM AEIN AEIO AEIP AEIQ AEIR AEIS AEIT AEIU AEIW AEIZ AEIO AEI1 AEI2 AEI3 AEI8 AEI9 AEXL AEYA AEYB AEYC AEYG AEYH AEYJ AEYK AEYL AEYM AEYN AEYO AEYR AEYT CODITION ERROR EOF EODS INBFMG NONVAL NOSTART TERMIDERR DSIDERR NOTFND DUPREC DUPKEY INVREQ IOERR NOSPACE NOTOPEN ENDFILE LENGERR QZERO ITEMERR PGMIDERR TRANSIDERR ENDDATA INVTSREQ TSIOERR MAPFAIL DISABLED INVERRTERM INVMPSZ IGREQID JIDERR QIDERR DSSTAT SELNERR FUNCERR UNEXPIN NOPASSBKRD NOPASSBKWR ISCINVREQ ENVDEFERR

AEYU AEYV AEYY AEYZ AEY1 AEY2 AEY3

IGREQCD SESSIONERR NOTALLOC CBIDERR INVPARTNSET INVPARTN PARTNFAIL

ABEND CODES : ABMG ABMP AEY7 AEY9 AICA AKCS ASRA ASRB : : : : : : : : Requested BMS service not included at system generation PA/PF key not defined for page retrieval Resource security check failed Unsupported command issued Transaction abended as a runaway task Deadlock time-out encountered ABEND due to program interruption ABEND due to OS ABEND intercepted by CICS

JCL ABEND CODES SB37 SD37 SE37 Space Abends SB37 - Insufficient disk space SD37 - Insufficient disk space SE37 - Insufficient disk space. The maximum number of extents would be exceeded. For instance, when exceeding 16 extents of a PDS. An E37 on tape datasets is most often caused when the number of requested volume s is exceeded. The default is 5, therefore a request for the sixth volume will f ail with a E37 S80A S804 S822 S80A, S804 Region too small for the program to run S822 - When the requested region is not available S122 The job was canceled because it violated some restriction. A dump was requested S222 The job was cancelled because it violated some restriction. No dump was requeste d. S322 The job used more CPU time than it should have. Either the estimate is wrong or the program is in an uncontrolled loop. S522 Job was waiting too long. S722

Too many lines of print. S706 The program on the library was not executable. See linkage editor report that put the program on library S806 Program not on the library. May need a JOBLIB or STEPLIB. S0C1 Executing a program with an unresolved external reference. Calling a program and the program was not included during link edit. An uncontrolled loop moved data on top of instructions. Reading a file that is not open Your SORTIN DCB was not correct Mixing compile options RES and NORES in different modules S0C4 An uncontrolled loop moved data on top of instructions. referencing a field in a record of a closed file referencing an item in Linkage-Section when there was no PARM= in the JCL. Calling/called programs have different length for items passed in Linkage Sectio n with COBOL Sort, doing a STOP RUN or GOBACK while an input or output procedure is still running S0C5 See reasons as for 0C4. Falling through into an ENTRY statement Transferring control into the middle of a SORT procedure. S0C7 Program attempting to do math on illegal data. Data is not numeric, but should be. Moving ZEROS to group item whose subordinate items are packed-decimal Uninitialized packed-decimal fields. Record description is wrong. Field starts or ends in the wrong place in the reco rd. Find record description of creating program. S0C8 S0C9 S0CA Decimal point overflow error S0CB Attempting to divide by 0 and not using ON SIZE ERROR S0CC Floating Pointing S0CD Exponent overflow and Underflow execptions S013

S878 S913 SB14 S001-4 Input file record length is not equal to the length stated in the DD or the FD Wrong length record. IO error, damaged tape, device malfunction. With disk, reading a dataset that was allocated but never written to. Writing to input file Concatenation of files with different record lengths or record formats. SOC1-5 Reading after the end of the file by non-COBOL program. COBOL intercepts this and displays "QSAM error, status 92". Out of space on output disk file. S002

Das könnte Ihnen auch gefallen