IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to set return code in PL/I?


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Thu Jun 21, 2007 10:54 pm
Reply with quote

Let me know how to set return code in PL/I?
Back to top
View user's profile Send private message
rahulkolhe2003

New User


Joined: 06 Mar 2007
Posts: 12
Location: columbus

PostPosted: Fri Jun 22, 2007 12:05 am
Reply with quote

Prabha,

The below code can used to set return code in Pl/I.

Code:
CALL PLIRETC (302);     



PLIRETC

This built-in subroutine allows you to set a return code that can be
examined by the program that invoked this PL/I program or by another PL/I
procedure via the PLIRETV built-in function.

+------------------------------------------------------------------------+
? ?
? >>--PLIRETC(x)------------------------------------------------------>< ?
? ?
+------------------------------------------------------------------------+

x An expression yielding a FIXED BINARY(31,0) return code.


Thanks,
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top