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
Is it possible to left uncode disp? If yes, how?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
Which dd parameters are required?
Explain the function of //cntl statement?
What is the difference between the positional and keyword parameters? Give examples.
What do you understand by the terms: joblib and steplib?
Is their any limit for data sets?
How do you create a temporary dataset?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
what is “Cond= even” and “Cond=only”?
Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
What are some jcl statements that are not allowed in procedures?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?