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 

IF condition in JCL : Usage of

 
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
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Tue Oct 16, 2007 8:08 pm    Post subject: Reply with quote

//JOBCARD...
//SETDAYP SET DAYP=2
//*
//* SET RETURN-CODE BASED ON THE INPUT PARM VALUE
//STEP1 EXEC PGM=SOMEPGM,PARM='&DAYP'
//*
// IF (STEP1.RC = 1) THEN
//SXWT5010 EXEC PGM=SORT
//......
// ENDIF
//SXWT5011 EXEC PGM=SORT
//..

See more detail here in 17.0 Chapter 17. IF/THEN/ELSE/ENDIF Statement Construct in the z/OS V1R9.0 MVS JCL Reference.
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Wed Oct 17, 2007 9:17 am    Post subject: Reply with quote

Pay special attention to 17.1.4.5 Relational-Expression Keywords.
_________________
....Terry
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 -> 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