Abending PL/I intentionally.

IBM's cross-platform compiler PL/I for MVS, VM & VSE, OS/390 and Enterprise PL/I for z/OS
User avatar
gokulNmf
Posts: 118
Joined: Sat Mar 28, 2009 6:41 pm
Skillset: JCL;COBOL;CICS;DB2
Referer: internet
Location: India

Abending PL/I intentionally.

Postby gokulNmf » Tue Jun 25, 2019 6:33 pm

Hi All,
I'm coding PL/I - MQ program, for error handling, i would like to Abend the program if I get unexpected errors during Get message call. that is i want to abend the program intentionally. Please let me know if there are any Abend routines for PL/I.

Thanks In Advance,
Gokul
Cheers,
Gokul

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

Re: Abending PL/I intentionally.

Postby Robert Sample » Tue Jun 25, 2019 7:04 pm

LE has CEE3ABD and CEE3AB2 that a PL/I program can call. Either should provide what you need. Check the manual z/OS Language Environment Programming Reference for details.

User avatar
prino
Posts: 641
Joined: Wed Mar 11, 2009 12:22 am
Skillset: PL/I - CICS - DB2 - IDMS - REXX - JCL, most in excess of three decades
Referer: Google
Location: Vilnius, Lithuania
Contact:

Re: Abending PL/I intentionally.

Postby prino » Tue Jun 25, 2019 7:50 pm

Code: Select all

signal error;
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy

User avatar
gokulNmf
Posts: 118
Joined: Sat Mar 28, 2009 6:41 pm
Skillset: JCL;COBOL;CICS;DB2
Referer: internet
Location: India

Re: Abending PL/I intentionally.

Postby gokulNmf » Thu Jul 04, 2019 7:34 pm

Hi All,

Thank you! Used lang environment's CEE3ABD.

Thanks,
Gokul
Cheers,
Gokul