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 

Cond Code Question in JCL

 
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
hisabari
Beginner


Joined: 20 Apr 2005
Posts: 6
Topics: 4

PostPosted: Wed Apr 20, 2005 6:55 am    Post subject: Cond Code Question in JCL Reply with quote

I have a doubt in the JCL. Can u pls. Ans: this.

//job1 JOB
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Apr 20, 2005 9:35 am    Post subject: Reply with quote

The job as written is invalid. Presuming it is re-written thus:
Code:

//JOB1 JOB  (A123),NOTIFY=&SYSUID,COND=(8,LT)     
//SEP1 EXEC PGM=...                               
//SEP2 EXEC PGM=ABC,COND=(4,GT,SEP1)               
//SEP3 EXEC PGM=XYZ,...                           


then

- SEP2 will execute only if the Return-Code of SEP1 is 4 or higher.

- If the Return-Code of any job step is higher than 8, then the COND condition specified on the JOB card is matched and the entire rest of the job is flushed.
Back to top
View user's profile Send private message
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