MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting return code from a jcl

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
enge
Beginner


Joined: 12 Oct 2004
Posts: 78
Topics: 39

PostPosted: Wed Mar 01, 2006 11:24 am    Post subject: Getting return code from a jcl Reply with quote

'morning,

How can i obtained and handle a return code in a pgm cobol batch at the end of a jcl?
e.g.

//step1 (ok rc=0)
.
.
// step2 (ko rc=13)
.
.
//mystep exec pgm=mypgm,
//.....

mypgm must capture rc = 13


thank a lot
Back to top
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Wed Mar 01, 2006 2:30 pm    Post subject: Reply with quote

You can use REXX to trap the previous step's RC, and store it in a dataset/membder. thisis only one of many examples in Google.

O.
________
PORNSTARS AUGUST
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group