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

A statement about PROCs is " In PROCs, Symbolic Parameters can be assigned on PROC and EXEC", BUT On which EXEC, (i) On the JCL's EXEC which is calling to PROC1. (Inside JCL, EXEC PROC1) (ii) or On the PROC's EXEC where it calls the PGM1. (Inside PROC, EXEC PGM=PGM1)

2 Answers   IBM,


A PROC has five steps. Step 3 has a condition code. How can you override/nullify this condition code?

5 Answers   IBM, Wipro,


1)what is compilation jcl for cobol program but it is calling another program 2)what is compilation jcl for cobol program but it is calling another program(in this, main program is pure cobol but sub program is cobol+db2 program.can anyone please answer me for above questions. it's very urgent

4 Answers   Mind Tree,


How can I write the joblog in the spool on normal end of a job step and direct the joblog to a dataset only if the step abends?

2 Answers  


What is the difference between the JOBLIB and the STEPLIB statements?

3 Answers  






Explain about LMMFIND - find a library member

1 Answers  


How to print the Output to SPOOL using MSGCLASS and SYSOUT ?

4 Answers   IBM,


i have two flat files.i want to select one record from that file by using jcl.for example file1 contains emp no,name,joining date. file2 has same details.emp no is primary key. i will give empno.that emp details send to outfile.please let me know if any one knows it.give sample code.

1 Answers   TCS,


How to send notification to multiple users through jcl???

8 Answers  


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

0 Answers  


is there any possibilities for sumbitting more than one job in single jcl? if yes...based on which thing they will execute..(priority,class,time,written order..?)

3 Answers   HSBC,


How can we increment subscript and index?

1 Answers   CTS, IBM,


Categories