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



i have 5 steps to execute in that i want to skip 3nd step and start execute from forth step how can..

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

i have 5 steps to execute in that i want to skip 3nd step and start execute from forth step how can..

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

i have 5 steps to execute in that i want to skip 3nd step and start execute from forth step how can..

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

i have 5 steps to execute in that i want to skip 3nd step and start execute from forth step how can..

Answer / sachin

put cond=(o,LE) in step3
and in step4 keep cond =even

Is This Answer Correct ?    1 Yes 0 No

i have 5 steps to execute in that i want to skip 3nd step and start execute from forth step how can..

Answer / mohan.chepuri

step3 use cond=(00,le) job wil be bypass in this case

Is This Answer Correct ?    0 Yes 0 No

i have 5 steps to execute in that i want to skip 3nd step and start execute from forth step how can..

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

i have 5 steps to execute in that i want to skip 3nd step and start execute from forth step how can..

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

Post New Answer

More JCL Interview Questions

i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the 6th step & 5th step output is used as input in the 7th step. How they are refered as in the 6th & 7th steps? If the job abends in 6th step then how the 5th step output is refered in 7th step?

6 Answers   IBM,


I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ............ //s3 exec .......... //s4 exec ........ //s5 exec ............... my question is i want to exeute only s2 and s4 steps... please advice me how to do this:

4 Answers   ITC Infotech, TCS,


how to do automated restart when a job abends?

0 Answers   IBM,


I have a COBOL program that Accepts some input data. How do you code the JCL statement for this? ( How do you code instream data in a JCL? )

9 Answers  


I have a JCL which 20 steps. How do I execute 17 th step alone (It should execute only 17ths tep.and it should not execute 18,19,20 steps??

9 Answers   IBM, Infosys, TCS, Xansa, Xchanging,






how to split a file

4 Answers   IBM,


Can we change a FB file to VB file in JCL? Please help

1 Answers  


In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???

10 Answers   Perot Systems,


Hi, can any one tell about " How do u eliminate the duplicates "

2 Answers   Cap Gemini,


What is maximum length of block size?

5 Answers   Cap Gemini, Kanbay, TCS,


What is TimeStamp, What is TimeStamp error and What is the Abend Code for TimeStamp Error ?

4 Answers   IBM,


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

0 Answers   IBM,


Categories