Error Codes
Error Codes
Syntax:
EXEC CICS ABEND ABCODE(‘9999’)
The above CICS command is used to throw user ABEND
9999.
Example:
WORKING-STORAGE SECTION.
77 MSG-LEN PIC S9(4) COMP.
01 MSG-DATA.
05 MSG-DATA1 PIC X(15).
05 MSG-DATA2 PIC X(50).
:
PROCEDURE DIVISION.
:
EXEC CICS HANDLE ABEND
LABEL(ABEND-ROUTINE)
END-EXEC.
:
ABEND-ROUTINE.
MOVE ‘ABEND OCCURED.’ TO MSG-DATA1.
MOVE ‘TASK CANCELLED WITH ABCODE 9999.’ TO MSG-DATA2.
MOVE 65 TO MSG-LEN.
EXEC CICS SEND
FROM (MSG-DATA)
LENGTH(MSG-LEN)
NOHANDLE
END-EXEC.
EXEC CICS HANDLE ABEND
CANCEL
END-EXEC.
EXEC CICS ABEND
ABCODE(‘9999’)
END-EXEC.
HANDLE CONDITION and IGNORE CONDITION commands
remain in effect until program ends.
CICS
ABEND CODES
AKCT -The task was cancelled due to long time waiting for an user input
4038 normally indicates your Cobol program has referenced an index outside the range of the occurs within a working storage table.in cics
HYPERLINK "https://www.mainframestechhelp.com/tutorials/cics/20-
endfile.html"https://www.mainframestechhelp.com/tutorials/cics/20-
endfile.html
If WS-RESP = DFHRESP(LENGERR)
OR
If WS-RESP = EIBRESP(0),
OR
EVALUATE EIBRESP
WHEN DFHRESP(NORMAL)
DO SOMETHING
WHEN NOT DFHRESP(NORMAL)
GOTO ABEND ROUTINE
END-EVALUATE
EIBRESP Description
-------- --------------
000 x00 NORMAL
012 x0C FILENOTFOUND
013 x0D NOTFND
014 x0E DUPREC –Alternate index with
UNIQUE option
At WRITE –A record with the same key
already exists. Rewrite the record
At REWRITE,- An attempt was made to
REWRITE a record where the key already
exists. ALT.index definition is with UNIQUE
KEY. Change logic
HYPERLINK "https://www.mainframestechhelp.com/tutorials/cics/file-
write.htm"WRITE
Solution: - Verify the record key and use READ with UPDATE to delete
specific record or use generic key to delete both if the second record
is not important.READ
READNEXT
READPREV 140 - A record is accessed by way of an alternate index
with the NONUNIQUEKEY attribute and another alternate index record
with the same key follows.
Solution: - Verify the record key and use READ with UPDATE to delete
specific record or use generic key to delete both if the second record
is not important.
When it happens is while DELETE the
record, Use the logic of READ with UPDATE
option before issuing DELETE.
——————
JCL ABEND
SPACE
HYPERLINK
"https://www.techagilist.com/mainframe/jc
l/space-abend-sb37-sd37-se37-
resolution/"Space ABEND – SB37, SD37,
SE37 & Resolution - Tech Agilist
https://www.techagilist.com › Blog
What are SD37, SB37, SE37 abends in jcl?
All indicate dataset out of space.
SD37 – no secondary allocation was specified.
SB37 – end of vol. and no further volumes specified.
DATACLASS=COMPRESS, ‘Z’ option to COMPRESS,
Specify the PEAK SIZE (Check for the previous RUNS and
see the peak size of the file) The PEAk size + 50% space for
PRIMARY and 20% increase in SIZE for SECONDARY, USE
the LARGE,XLARGE size of your Instalation specified values
in SPACE allocation. NM,, GDetaily, Use Dataset name type
Large: In order to accommodate huge volume
datasets Large format PS files were introduced in z/OS 1.7 .
SE37 – Max. of 16 extents already allocated.
ALL VOLUMES are FULL.Use TMSFORMAT while
allocating space so that new VOLUMES will be allocated
with the SPACE specified newly.
TMSFORMAT - Its all about tape. TMSXTEND can be used to
move the TMC ( HYPERLINK
"https://techdocs.broadcom.com/us/en/ca-mainframe-
software/performance-and-storage/ca-1-tape-management-
system/14-0/programming/data-set-requirements/tmc-tape-
management-catalog-cai-ca1-tmc-required.html"TMC - Tape
Management Catalog) to a new volume, reblock the TMC,
and extend the TMC by adding new volume ranges. So more
space will be available. How we are getting more spaces is,
the ranges of volumes can optionally be marked as inactive
(deleted) while installation time for future expansion.
————
———
———————————————
14. Explain the terminologies- AMODE(24), AMODE(31), RMODE(24), and RMODE(ANY).
AMODE refers to Addressing Mode. AMODE(24) represents the 24-bit addressing mode, and AMODE(31) represents the 31-bit addressing mode.
RMODE refers to Resident Mode. RMODE(24) represents the residence of a mode within the below 16 Meg line virtual storage. RMODE(ANY)
represents the residence of any level below or above the 16 Meg line.
The most popular alternatives to COBOL include Java, Python, Cobalt, JavaScript, and C language.
Object-Oriented COBOL programming enables writing the code naturally. Here, the objects are identified, and the procedures, as well as functions,
are written around that object.
Structured programming enables writing the code logically. It divides the functionalities into modules, and then the code is written logically.
------
-922Authorization needed.
MQ error codes
Completion codes
The completion code parameter (CompCode) allows
the caller to see quickly whether the call completed
successfully, completed partially, or failed. The
following is a list of completion codes, with more
detail than is given in the call descriptions:
MQCC_OK - -COMPLETION CODE IS 0
Return code – 0.The call completed fully; all output
parameters have been set. The Reason parameter
always has the value MQRC_NONE in this case.
MQCC_WARNING -COMPLETION CODE IS 2
/Return code – 2. The call completed partially. Some
output parameters might have been set in addition to
the CompCode and Reason output parameters.
The Reason parameter gives additional information
about the partial completion.
MQCC_FAILED -COMPLETION CODE IS 1
Return code – 2.
The processing of the call did not complete. The
state of the queue manager is unchanged, except
where specifically noted.
The CompCode and Reason output parameters
have been set; other parameters are unchanged,
except where noted.
The reason might be a fault in the application program, or it might be
the result of some situation external to the program, for example the
user's authority might have been revoked. The Reason parameter
gives additional information about the error.
The get call timed out before receiving any messages (Reason
Code 2033