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
What are s0c1, s0c4, s0c5, s0c7 and socb?
What is the difference between run mode and addressing mode?
What parameters can be used to limit the number of records written to a sysout dataset?
Explain about ISPF/TSO Commands
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
Explain the purpose of the dd keylen parameter?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
what is the compile process of cobol program expalin with code
How is the record format of an output dataset specified?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
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
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
Is their any limit for data sets?