i have 5 steps to execute in that i want to skip 3nd step
and start execute from forth step how can u do this.
Answers were Sorted based on User's Feedback
Answer / y@$w@nth
I think u want to execute only 1,2,4,5 steps...for this the
solution is
//userid01 JOB 'sample','test',class=a,restart=step3
//step1 exec pgm=prog1
//step2 exec pgm=prog2
//step3 exec pgm=prog3,cond=(0,LE,step2)
//step4 exec pgm=prog4
//step5 exec pgm=prog5
//
So in the above case step3 won't execute only 1,2,4,5 steps
will execute.
If ur question is that u want to restart from step4 that
means u want to execute only 4,5 steps then we can go for
restart parameter at job card level..
//userid01 JOB 'sample','test',class=a,restart=step3
//step1 exec pgm=prog1
//step2 exec pgm=prog2
//step3 exec pgm=prog3,cond=(0,LE,step2)
//step4 exec pgm=prog4
//step5 exec pgm=prog5
//
Cheers....
Y@$w@nth
| Is This Answer Correct ? | 12 Yes | 4 No |
Answer / karan johar accenture
//step3 exec pgm=p3,cond=(4,GT,0)[0 means rc of step2]
//step4 exec pgm=p4,cond=(4,LE)
| Is This Answer Correct ? | 6 Yes | 3 No |
Answer / girish kumar
By using IEBEDIT we can do it
sysin dd *
edit type=exclude,stepname=(step3)
| Is This Answer Correct ? | 6 Yes | 5 No |
Answer / sachin
put cond=(o,LE) in step3
and in step4 keep cond =even
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mohan.chepuri
step3 use cond=(00,le) job wil be bypass in this case
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vinay sonar
put always true condition using cond parameter in step
eg //STEP2 DD PGM=IEBGENER,COND=(0,LT)
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / krishna chaitanya
at jobcard cond(o,gt)
and then at step 3 cond(0,le)
and at step 4 (0,gt)
or
simply give restart step4
| Is This Answer Correct ? | 1 Yes | 2 No |
I have 2 steps in my exec statement , in first step I am creating a gdg, and the output of this step is going into second step as a input, and this second step is abended , now how could i approach in this case.
if we give TIME=0 how many sec that job/step
How can you execute a COBOL program via SYSIN in JCL?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
How To get the last record in VSAM file in cluster? and How can u get the ksds file records into ur cobol program ? Pls tell me about these two questions.
oza017.myorg.emp has 100 records ,oza018.myorg.staff has 200 records but 50 are the common records in both files copy all the common records into oza017.myorg.xyz dataset
Where can program checkpoints be stored for use in a restart?
Please give me the coding for converting VB to FB and FB to VB
What do you do if you do not want to keep all the space allocated to a dataset?
In a proc i will concatinate 4 dd statements.i want to overide 3 dd statement through jcl how?
What is the difference between the positional and keyword parameters? Give examples.
what are the symbolic parameters? why do we use symbolic parameters ?
2 Answers IBM, TCS, UST, Xansa,