View previous topic :: View next topic
|
Author |
Message |
Mr.Niceguy
New User
Joined: 16 Jun 2005 Posts: 63
|
|
|
|
Hi All,
Let's say we have a catalogue procedure contains 50 number of steps to execute. I just want to apply a single condition which should apply for all the steps involved in that catalogue procedure.
Is this possible, If so HOW?
what will be result of the following coding?
//step1 exec pgm=file1,disp=shr
//step1 exec pgm=file2,disp=shr
Bye!! |
|
Back to top |
|
|
chanda.debasish
New User
Joined: 19 Sep 2005 Posts: 9
|
|
|
|
In the job card you need to code
cond=(0,lt)
This cond will be aplied to all the steps. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
1) You code any cond stmt you need in the job stmt and it will be available for execution in every step of the job.
2) JCL error. |
|
Back to top |
|
|
Mr.Niceguy
New User
Joined: 16 Jun 2005 Posts: 63
|
|
|
|
Hi all,
Thanks for your suggestion. But will it be applicable for the following question.
Let's us say this is a mainJCL where it is calling a procedure which kept as a member in same PDS.
//JOBNAME JOBCARD
//STEP1 EXEC PROC1.
//DD1 DD DSN=....
//
//PROC1 PROC
//STEP1 EXEC PGM=FILE1
//DD1 DD DSN=...
//STEP2 EXEC PGM=FILE2
//DD2 DD DSN=...
//STEP3 EXEC PGM=FILE3
//DD3 DD DSN=....
//
Here I want to apply a condition in main JCL which should be applicable for all the steps in procedure.
Is this Possible?
BYE |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi MNG,
You showed:
Quote: |
//JOBNAME JOBCARD
//STEP1 EXEC PROC1.
//DD1 DD DSN=....
//
|
Why the //DD1? I assume it's a typo.
If you code:
//JOBNAME JOBCARD,COND=(4,LE)
//STEP1 EXEC PROC1
If any step issues a RC of 4 or more, none of the remaining steps will execute. |
|
Back to top |
|
|
|