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
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 |
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 |
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 |
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 |
When we use conditional statement in JCL using if-then-else-endif, IF statement is true, the step is bypassed or executed?
Is CPU time assigned to a JOB and JOBSTEP BOTH, by default ?
What is the function of job statement in jcl?
I have 20 steps in a job... step01, 02....step17...step20. For some reason I want to execute step17 only if the return code for all the previous steps are less than or equal to 4. otherwise if return code for any of the previous 16 steps is greater than 4, then step17 should be bypassed. How do I do that ?? how and in which step should i formulate COND parameter
How to see the COMP3 value(packd decimal)
What does IEBGENER do?
What parameter of the job statement is used to limit the cpu time consumed by the job?
What is jcl in mainframe?
How do you override a parameter in Positional parameters?
can we copy a file from fixed block to variable block and vice versa ....asap
Is it possible to take a PDS and write it to a GDG? If so, can you provide an example? Thanx
Which COND paramter will u use to execute the step only if the previous step does not execute