View previous topic :: View next topic |
Author |
Message |
sharada Beginner
Joined: 24 Aug 2005 Posts: 32 Topics: 14 Location: Hyderabad
|
Posted: Tue Dec 26, 2006 5:32 am Post subject: Conditional execution of steps in a job based on symbolics |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Tue Dec 26, 2006 5:05 pm Post subject: |
|
|
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 |
|
|
|
|