How to execute step2,step5,step7 of a proc of 10 steps?
You are not allowed to change in JCL.

Answers were Sorted based on User's Feedback



How to execute step2,step5,step7 of a proc of 10 steps? You are not allowed to change in JCL...

Answer / adarsh

we can execute selected steps using iebedit utility..

//sysin dd *
edit type = include,stepname=(step2,step5,step7)
//

Is This Answer Correct ?    34 Yes 0 No

How to execute step2,step5,step7 of a proc of 10 steps? You are not allowed to change in JCL...

Answer / muttiah

@Adarsh:

That will be useful when we want to copy steps from a JCL
directly, not from a PROC.

@ NaliniNayak:
Using restart you can point to step2 of a proc as below.
//RESTART=PROCSTEP.STEP2 in the job card.

Code Cond=(0,LE) for all the steps you want to skip..Say in
our case it's 3,4,6,8 and 9th step in proc.

Is This Answer Correct ?    2 Yes 0 No

How to execute step2,step5,step7 of a proc of 10 steps? You are not allowed to change in JCL...

Answer / krish123

we can use COND code in order to execute this. Use condition
code in each step
//JOBNAME JOB ACCT, RESTART=PROCA.STEP2 ---> INORDER TO
EXECUTE THE PROGRAM FROM STEP2
//PROCA EXEC PROCA

//STEP1 EXEC PGM=PROGRAM1
//STEP2 EXEC PGM=PROGRAM2,COND=(0,LT,STEP1)
//STEP3 EXEC PGM=PROGRAM3,COND=(0,GT,STEP2)
//STEP4 EXEC PGM=PROGRAM4,COND=(0,GT,STEP3)
//STEP5 EXEC PGM=PROGRAM5,COND=(0,LT,STEP4)
//STEP6 EXEC PGM=PROGRAM6,COND=(0,GT,STEP4)
//STEP7 EXEC PGM=PROGRAM7,COND=(0,LT,STEP6)
//STEP8 EXEC PGM=PROGRAM8,COND=(0,GT,STEP7)
//STEP9 EXEC PGM=PROGRAM9,COND=(0,GT,STEP8)
//STEP10 EXEC PGM=PROGRAM10,COND=(O,GT,STEP9)

Is This Answer Correct ?    11 Yes 13 No

Post New Answer

More JCL Interview Questions

Explain about LMFREE�free data set from its association with data ID

0 Answers  


When we use conditional statement in JCL using if-then-else-endif, IF statement is true, the step is bypassed or executed?

6 Answers  


When we give TYPERUN = SCAN , what are the syntax errors we get?

5 Answers   Kanbay,


When will we need to specify Space parameter ?

3 Answers   Wipro,


There are two input sorting files and there is a need to create one sort out file which contains data of both input files. What is the sort card for this. Write a sample JCL for this using a control card?

3 Answers  


How to execute 2nd and 4th steps among 5 steps in jcl proc?

0 Answers  


How to delete AIX ? i) IEBGENER ii) IDCAMS iii) PURGE iv) All of the above

3 Answers   HSBC,


A job has 150 steps i want to execute only 57th step

3 Answers   Cognizant,


Can we have a JOBSTEP without any EXEC ?

6 Answers   IBM,


How can unused space allocation be returned to the system when a dataset is closed?

0 Answers  


What will happen if two JOB statements are mentioned in an JCL continuously.

2 Answers   IBM,


please could u tell me the difference between SORT, SYNCSORT,CA-SORT, DFSORT,

1 Answers   IBM,


Categories