Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set RETURN CODE in Z/OS Mainframe Environment

Status
Not open for further replies.

ThompsonA

Technical User
Jan 30, 2002
10
US
Normally when my SAS program executes without error, a return code of 00 is returned. I am running my SAS program via JCL in a mainframe batch environment with Z/OS.

Is there a way in the SAS program to set the return code to a different value, say 20. I'd like to do this so that subsequent steps in the JCL could check this return code to see if my program found a certain condition.

Any advise that you may have will be helpful.
 
Look up the ABORT command. It has an option to specify the return code.
For instance
Code:
  abort return 0;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top