Interview Questions   Tutorials   Discussions   Programs   

CICS - What is the ABEND command and when would you use it?




354
views
asked mar August 18, 2014 11:53 AM  

What is the ABEND command and when would you use it?


           

1 Answers



 
answered By Mswami   0  
ABEND:

Terminate a task abnormally.

Syntax:

ABEND

>>-ABEND--+--------------+--+--------+--+--------+-------------><
         '-ABCODE(name)-'  '-CANCEL-'  '-NODUMP-'  

This command is threadsafe.

Description:

The ABEND command terminates a task abnormally.

CICS releases the main storage associated with the terminated task; optionally, you can obtain a transaction dump of this storage.
Invoking the ABEND command causes the current transaction to abend. The Language Environment is informed that an abend has occurred and the following message is written out to CEEMSG followed by a dump report:

CEE3250C The system or user abend XXXX was issued

XXXX is the transaction dump code specified on the ABCODE option. The Language Environment attempts to access register addresses to dump out the referenced storage as part of the dump report written to CEEMSG. If the Language Environment does not have access to the storage addressed by these registers an 0C4 abend can occur. You can eliminate 0C4 abends by setting the Language Environment runtime option TERMTHDACT to QUIET, MSG, or UAONLY.

The following example shows how to terminate a task abnormally:

EXEC CICS ABEND ABCODE('BCDE')
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert