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 

Conditional execution of steps in a job based on symbolics

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


Joined: 24 Aug 2005
Posts: 32
Topics: 14
Location: Hyderabad

PostPosted: Tue Dec 26, 2006 5:32 am    Post subject: Conditional execution of steps in a job based on symbolics Reply with quote

Hi All,

Is there a way to conditionally execute a step in a job based on a symbolic parameter which is given at the beginning of the job?

E.g.: If we set a symbolic using SET command and we want to execute a particular step in that job only if the value of that SET variable is equal to some hard coded value. Can we do it?

I tried the following way but its not working.

//SETVAR SET ABCD=ABCD
//GOOD IF (&ABCD = 'XYZ') THEN
//STEP010 EXEC PGM=IEFBR14
.
.
.
// ENDIF
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Dec 26, 2006 5:05 pm    Post subject: Reply with quote

sharada,

You can specify symbolic parameters on IF/THEN/ELSE/ENDIF statements provided that they resolve to one of the supported relational-expression keywords(that is, RC, ABEND, ...). Any other symbolic parameters, even if accepted by the system, are not intended or supported.

Check this link for an example

http://www.mvsforums.com/helpboards/viewtopic.php?p=23673#23673

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