View previous topic :: View next topic
|
Author |
Message |
yadagiri.p
New User
Joined: 01 Sep 2005 Posts: 10 Location: Bangalore
|
|
|
|
Hi all
I have 5 step in jcl,but i want execute the steps 1, 3,5.
how can execute.can anybody tell process.
regards
yadagiri |
|
Back to top |
|
|
Husna
New User
Joined: 02 Jun 2006 Posts: 49
|
|
|
|
Hi Yadagiri,
Comment the 2nd and 4th steps...
//job1 job....
//step1 exec....
//*step2 exec ...
//step3 exec....
//*step4 exec ...
//step5exec....
I hope it will work fine?
Please correct, if I am wrong. |
|
Back to top |
|
|
sundaresanjs
New User
Joined: 29 May 2006 Posts: 18 Location: USA
|
|
|
|
hi Husna,
you are correct, we can use like that in order to skip the steps, i have worked with it, it works fine
thanks,
regards, |
|
Back to top |
|
|
gsnvsr
New User
Joined: 06 Jul 2005 Posts: 40
|
|
|
|
yadagiri.p wrote: |
Hi all
I have 5 step in jcl,but i want execute the steps 1, 3,5.
how can execute.can anybody tell process.
regards
yadagiri |
The question you are asking is unclear. Do you wanna skip execution of some steps -
a) based on a condition ?
b) unconditionally ?
If answer is (a) then code a COND statement in the job step.
If answer is (b) then either delete the unwanted steps from JCL or just comment the steps as others have indicated. |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
Hello yadagiri,
You could do as suggested above, but this will prove to be cumbersome I think. You need to either comment or delete ALL lines in the jobstep you do not want to execute. If this is a job that you will want to run again with the steps restored, then you need to back out ALL of the commented/deleted cards.
I think you?ll find this to be easier.
If you are not executing a PROC
Code: |
//JS00100 EXEC PGM=IEFBR14
//JS00200 EXEC PGM=IEFBR14,COND=(0,LE)
//JS00300 EXEC PGM=IEFBR14
//JS00400 EXEC PGM=IEFBR14,COND=(0,LE)
//JS00500 EXEC PGM=IEFBR14
|
or if you are executing a proc
Code: |
//EXECODD PROC
//PS00100 EXEC PGM=IEFBR14
//PS00200 EXEC PGM=IEFBR14
//PS00300 EXEC PGM=IEFBR14
//PS00400 EXEC PGM=IEFBR14
//PS00500 EXEC PGM=IEFBR14
// PEND
//JS00100 EXEC EXECODD,
// COND.PS00200=(0,LE),
// COND.PS00400=(0,LE)
|
Dave |
|
Back to top |
|
|
|