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 created one base gdg with lrecl = 100 , now i need to create versions with different lrecl =150,200 can it be possible to create like tht ?

1 Answers   Patni, Syntel,


1.How to check for the errors using TYPRUN=SCAN?What will be the output if we give TYPRUN=SCAN?

11 Answers  


What is SORT ? How do we eliminate duplicate records ? How do I select some records using SORT ?

9 Answers   GE, Xansa,


Can a PROC CALL another PROC ? (in both Instream and Cataloged cases) ?

3 Answers   IBM,


what is instream data

2 Answers   EDS,






A maximum of 100 chars can be passed to Cobol through Parm in JCL, If we want to pass more than 100 Chars how we can do it ?

3 Answers   IBM,


What is the function of dd disp parameter?

0 Answers  


Explain about RECORDING MODE Clause

1 Answers  


A. Job Abended in STEP03. Now run job again to execute STEP03, STEP04 (STEP01,STEP02 should not execute again)

3 Answers   Cap Gemini, CSC, Xchanging,


Explain dfsort utility?

0 Answers  


What is the use of symbol // in jcl?

0 Answers  


Suppose i have 2 steps in my pgm. Step1- creates a file, Step2 - generates report from file in step1, What changes have to be made in Step2, so that if the file in Step1 is empty Step2 should not be executed? No changes to be made to Step1.

4 Answers   TCS,


Categories