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

Defining a specific return code for any step


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
link.pradeep

New User


Joined: 21 Dec 2006
Posts: 7
Location: delhi

PostPosted: Sun Feb 04, 2007 10:59 am
Reply with quote

there is a job in which have many steps and i want that the 2nd step always gives the return code 15 when it excuted.
how it is possible
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Feb 04, 2007 11:42 am
Reply with quote

Hello,

If the 2nd step is written in COBOL, move 15 to RETURN-CODE immediately before the program ends.

If the job has many steps, and you ALWAYS want step2 to issue a return code 15, why bother with it.? If it will ALWAYS issue the 15 what is gained by having 15 rather than zero?
Back to top
View user's profile Send private message
Yuvaraj BP

New User


Joined: 12 Oct 2006
Posts: 12
Location: Bangalore

PostPosted: Sun Feb 04, 2007 10:45 pm
Reply with quote

can you substantiate why you need that kind of return code to be obtained exactly????
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 -> JCL & VSAM

 


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 How to append a PS file into multiple... JCL & VSAM 3
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top