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?
Answer Posted / 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 |
Post New Answer View All Answers
a dd statement has 2 types of parameters. Name them?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
Explain the function of job statement in jcl?
Explain the jcl exec statement?
What does a disposition of (new,catlg,keep) for a dsn mean?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
Is it possible to define dd statements as you want?
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
Must tape dataset definitions include vol=ser specifications?
What is the function of dd name parameter with a 2 part structure; audit.report?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
Explain the function of dd disp parameter?
how JCL works?