My JCL has 4 steps that execute PROC’s P1, P2, P3 and P4 as
shown below

//P1 EXEC PROC=P1
//P2 EXEC PROC=P2
//P3 EXEC PROC=P3
//P4 EXEC PROC=P4

There are four steps S1, S2, S3 and S4 in each PROC’s (i.e.
P1, P2, P3 and P4)

I want to execute only step S2 of PROC P2 and no other
steps or PROC’s. How do you achieve this?

Answers were Sorted based on User's Feedback



My JCL has 4 steps that execute PROC’s P1, P2, P3 and P4 as shown below //P1 EXEC PROC=P1 //..

Answer / mr. cooooool

Hi...........
We can do like dis:

//COOLJCL JOB NOTIFY=&SYSUID,RESTART=P2.S2
//P1 EXEC PROC=P1
//P2 EXEC PROC=P2
//

WE NEED ALSO TO CODE COND PARAMETER FOR S3,S4
LIKE THIS

//S3 EXEC PGM=PGM1,COND=(0,LE)
//S4 EXEC PGM=PGM2,COND=(0,LE)

THIS WILL CAUSE EXCUTION OF JOB WILL START FROM
S2(STEP) OF P2(PROC) AND THAN REMAINIG STEP(S3,S4)
WILL BYPASS.

THANKS
REGARDS
RAVINDRA BISHT

Is This Answer Correct ?    9 Yes 1 No

My JCL has 4 steps that execute PROC’s P1, P2, P3 and P4 as shown below //P1 EXEC PROC=P1 //..

Answer / harsha

1 Give Restart parameter as 'RESTART=Jobstep.Procstep' on
JOB card. In this case it would be RESTART=P2.S2. Just
after step S2, give NULL statement or COND=(0,LE).
2 User IEBEDIT.
STEPNAME=(P2.S2)

Is This Answer Correct ?    1 Yes 1 No

My JCL has 4 steps that execute PROC’s P1, P2, P3 and P4 as shown below //P1 EXEC PROC=P1 //..

Answer / challa srinivas

Just use restart parameter in job card. as restart=(p4.s2) after this give null statement in the job or in step 3 of proc4 give COND = (0,LE,s2). Please make sure that step 2 should execute successfully else the job will start executing from step3.

Is This Answer Correct ?    0 Yes 0 No

My JCL has 4 steps that execute PROC’s P1, P2, P3 and P4 as shown below //P1 EXEC PROC=P1 //..

Answer / ajay kumar ande

job001 job (a/c info),"ajay'...... ,restart=procnm.stepnm
//P1 EXEC PROC=P1
activity
dd
//P2 EXEC PROC=P2
activity
//P3 EXEC PROC=P3
activity
dd
//P4 EXEC PROC=P4
activity
dd
procnm exec proc,

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More JCL Interview Questions

how to identify a vasam dataset by seeing in 3.4(browse)

5 Answers   Cap Gemini,


What is the difference between sb37,se37,sd37 each?

9 Answers   TCS,


What are the parameter we cannot use in procedure? How many instream we can write in single jcl?

0 Answers  


Explain about LMGET�read a logical record from a data set

1 Answers  


Mention the types of job control statements?

0 Answers  






How do you create a temporary dataset? Where will you use them?

2 Answers   IBM,


Does the terms, JOBLOG, SPOOL and SYSOUT indicate the same thing, i.e., where JCL and JES messages and statements are written ?

2 Answers  


What are the keywords associated with DCB? How can you specify DCB information? What is the OS precedence for obtaining that DCB information, ie. where does the system look for it first?

2 Answers  


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

0 Answers  


we define the array like this 01 array 02 veg occurs 10 times 03 days occurs 6 times 04 cost pic 9(5). but why don't we write it as 01 array 02 veg occurs 10 times 03 days occurs 6 time 04 cost pic 9(5). is there any error will occur ,what is it? and why don't 01,02,03 not contain picture clause? if we put pic in those is there any error will occur what is it will occur?

1 Answers   Fidelity,


What are SD37, SB37, SE37 abends?

4 Answers  


can we bowse or edit the GDG dataset if it is a tape entry?

4 Answers  


Categories