05 abend-code                    pic 9(4) comp.

CALL 'ILBOABN0' USING ABEND-CODE

Enterprise COBOL for z/OS V3R4 Migration Guide

3.2.7    Using ILBOABN0 to force an abend

IBM Mainframe Discussion List <IBM-MAIN@bama.ua.edu> wrote on 01/29/2010 
09:10:20 AM:

> Many people have written a subroutine in assembler to issue the abend
> and just call it from the main program.
> 
> Eg CALL 'ABEND' USING ABEND-CODE.
> 
> HTH,
> 
> <snip>
> > We are trying to move aways from assembler to cobol in batch.
> > One of the programmers has a question. He asked me if there is a cobol
> > equivalent to assemblers 'abend'
> > He has done some reading and tried what was given but is having no
> luck
> > getting the return code he wants into it
> > He can get it to abend but the s0c7 overrides the value he wants to
> put in
> > the field.
> > I've looked around but havent been able to help him
> > Can and how is this done??
> </snip>
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html


-----------------------------------------
The information contained in this communication (including any
attachments hereto) is confidential and is intended solely for the
personal and confidential use of the individual or entity to whom
it is addressed. If the reader of this message is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this
communication in error and that any review, dissemination, copying,
or unauthorized use of this information, or the taking of any
action in reliance on the contents of this information is strictly
prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original
message. Thank you 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to