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 am trying to copy a PS file into VSAM file in step2 by using PGM=IDCAMS,COND=(0,LT) and the pS file is getting sorted in the step1. I got the return code 00 for step1 but step2 got flushed. can u please help on this. Below is My JCL. SEPP050 EXEC PGM=SORT,REGION=6144K SYSIN DD DSN=SYSCMN.PROD.CCLIB (F5910BNN), DISP=SHR SYSOUT DD SYSOUT=* SYSUDUMP DD SYSOUT=A SORTIN DD DSN=Z1225BT.F5910EPP.HISOUT, DISP=SHR SORTOUT DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT5, DISP= (NEW,CATLG,DELETE),UNIT=DELQ, SPACE=(CYL, (500,500),RLSE), DCB= (RECFM=FB,LRECL=1606,BLKSIZE=16060,BUFNO=15) SORTWK01 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK02 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK03 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK04 DD UNIT=SYSDA,SPACE=(CYL, (1)) SYSIN1 DD UNIT=VIO,SPACE= (80,1) * SEPP060 EXEC PGM=IDCAMS,COND= (0,LT) SYSPRINT DD SYSOUT=* SYSOUT DD SYSOUT=* SYSLIST DD SYSOUT=* *** DD01 DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT, // DISP=SHR //*** //DD01O DD DSN=Z1225BT.F5910PHS, // DISP=SHR, // AMP=(AMORG,'BUFND=12,BUFNI=5') //SYSIN DD DSN=SYSCMN.PROD.CCLIB(F5910BBB), // DISP=SHR Output RC for the two steps: SDCBPJ05 SEPP050 00 236 .00 .00 .0 SDCBPJ05 SEPP060 FLUSH 0 .00 .00 .0

3 Answers  


What is notcat 2 - gs?

0 Answers  


Which statement is used to identify the private libraries in job?

0 Answers  


How many types we can give input to JCL

5 Answers   UHG,


How would I code JCL to copy a gdg data set G001v00 and create a gdg Data set G001v01

2 Answers  


What is DSNDB06 ?

1 Answers  


describe the job statement, its meaning,syntax and significant keywords?

1 Answers  


Suppose a proc step has a DD statement like //ABC DD DSN=TEST.FILE1,DISP=SHR DSN=TEST.FILE2,DISP=SHR and the above DD name is overridden from the JCL as given below //procstepname.ABC DD DSN=TEST.FILE3 - Will the DD statement now have just TEST.FILE3 or it will be TEST.FILE3 and TEST.FILE2? Suppose if it is overridden twice like //procstepname.ABC DD DSN=TEST.FILE3 //procstepname.ABC DD DSN=TEST.FILE4 Will this give a JCL error? If not, what will be final output?

2 Answers  


Is stepname is a MUST and should be unique also for each JOBSTEP ? or system can supply the stepname for a step which is not given a name by the programmer ?

6 Answers   IBM,


In Job, there are 10 steps. If I want to execute the first 6 steps and don't want to execute from 7th to 10th step. What is the solution for this ?

7 Answers  


What are the parameter in the job card wihtout which job won't run........

10 Answers   IBM,


What does a disposition of (NEW,CATLG,KEEP) mean?

1 Answers   Cap Gemini,


Categories