Abending PL/I intentionally.



IBM's cross-platform compiler PL/I for MVS, VM & VSE, OS/390 and Enterprise PL/I for z/OS

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
User avatar
gokulNmf
 
Posts: 118
Joined: Sat Mar 28, 2009 6:41 pm
Location: India
Has thanked: 0 time
Been thanked: 0 time

Re: Abending PL/I intentionally.

 

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.
Robert Sample
Global moderator
 
Posts: 3588
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 262 times

Re: Abending PL/I intentionally.

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

signal error;
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 587
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 26 times

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
User avatar
gokulNmf
 
Posts: 118
Joined: Sat Mar 28, 2009 6:41 pm
Location: India
Has thanked: 0 time
Been thanked: 0 time


Return to PL/I