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 

Regarding CONd Codes

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Beswar
Beginner


Joined: 04 Feb 2003
Posts: 33
Topics: 15

PostPosted: Tue Mar 29, 2005 9:00 am    Post subject: Regarding CONd Codes Reply with quote

Hi

I have a problem using the condintion codes in the jcl. in my job I am using 4 procs. if the second step of first proc gives more than zero return code, I want to execute the one step in the JCL. but that step would not in the proc and it would be in the JOB. Could anybody how to do this


Thanks
Eswar
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Mar 29, 2005 1:06 pm    Post subject: Reply with quote

beswar,

If I understand your question correctly , you want to validate the return code of a step in a catalogued procedure in the JCL.

For example you have proc1 with 2 steps in it .

Code:

//PROC1   PROC
//P1STEP1 DD EXEC PGM=..
...
//P1STEP2 DD EXEC PGM=..


Now your JCL looks as below

Code:

//JSTEP1   EXEC PROC1   
//JSTEP2   EXEC PGM=..


Now you want to validate the return code of p1step2 for Jstep2? You don't want to run JSTEP2 if p1step2 issues a return code of zero. You can do that simply by coding as shown below.
Code:

//JSTEP2   EXEC PGM=SORT,COND=(0,EQ,JSTEP1.P1STEP2)


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) 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