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

How to Modify the SAS return code(SYSRC) in the SAS Code?


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abhishekmdwivedi

New User


Joined: 22 Aug 2006
Posts: 95
Location: india

PostPosted: Thu Jun 12, 2008 7:15 pm
Reply with quote

My apologies for posting untested code.
And yes gcicchet you are right that SAS will return value 0 even if RC=16 with return is used within the SAS.
Thanks for correcting me.
Back to top
View user's profile Send private message
siva25

New User


Joined: 22 Jun 2007
Posts: 4
Location: bangalore

PostPosted: Thu May 21, 2009 8:28 pm
Reply with quote

Could anyone please tell me the logic?

I want to modify the Return code Value in the SAS, like forcing the JOB abend while Testing.

My Requirement:

If the output file has only 1 record, then modify the return code, the job (SAS step) should end with a non-zero return code.
If the output file has more than 1 record, the job should end with zero return code.

Thanks in advance.
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 -> All Other Mainframe Topics

 


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