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 |
how to identify a vasam dataset by seeing in 3.4(browse)
What is the difference between sb37,se37,sd37 each?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
Explain about LMGET�read a logical record from a data set
Mention the types of job control statements?
How do you create a temporary dataset? Where will you use them?
Does the terms, JOBLOG, SPOOL and SYSOUT indicate the same thing, i.e., where JCL and JES messages and statements are written ?
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?
Which statement is used to identify the private libraries in job?
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?
What are SD37, SB37, SE37 abends?
can we bowse or edit the GDG dataset if it is a tape entry?