Ok, so how about the obvious response…… Since you are going to edit the JCL to 
add // or something, why not just comment out or delete the remaining JCL?

Dave Jousma
Vice President | Director, Technology Engineering





From: IBM Mainframe Discussion List <[email protected]> on behalf of Bob 
Bridges <[email protected]>
Date: Friday, December 22, 2023 at 12:40 PM
To: [email protected] <[email protected]>
Subject: Re: Stupid JCL question
Ooh, not bad! At least, it looks not-bad at first blush, though before I 
implement it I guess I'll wait to see what other comments surface here. Thanks, 
Sri. --- Bob Bridges, robhbridges@ gmail. com, cell 336 382-7313 /* Freedom of 
the press


Ooh, not bad!  At least, it looks not-bad at first blush, though before I 
implement it I guess I'll wait to see what other comments surface here.  
Thanks, Sri.



---

Bob Bridges, [email protected], cell 336 382-7313



/* Freedom of the press is limited to those who own one.  -Abbott Joseph 
Liebling */



-----Original Message-----

From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Sri 
h Kolusu

Sent: Friday, December 22, 2023 12:30



Your option works, however, there is another option to make jcl skip steps with 
enclosing the steps as data.



For example, if you had 10 steps and you want only first 6 steps to run then 
simply add //SAVE    DD DATA,DLM=## after step 5 and everything else below it 
will be ignored .  It also will give the flexibility of skipping some steps in 
between and run later steps too.



//STEP0100 EXEC PGM=PGM0

//STEP0500 EXEC PGM=PGM4

//STEP0600 EXEC PGM=PGM5

//STEP0700 EXEC PGM=PGM6

//STEP0800 EXEC PGM=PGM7

//STEP0900 EXEC PGM=PGM8



So, from the above example. You code it as follows.



//STEP0100 EXEC PGM=PGM0

//STEP0500 EXEC PGM=PGM4

//SAVE    DD DATA,DLM=##

//STEP0600 EXEC PGM=PGM5

//STEP0700 EXEC PGM=PGM6

//STEP0800 EXEC PGM=PGM7

//STEP0900 EXEC PGM=PGM8



For example, if you want to run steps 1 thru 5 and 8 thru 10 you code something 
like this



//STEP0100 EXEC PGM=PGM0

//STEP0500 EXEC PGM=PGM4

//SAVE    DD DATA,DLM=##

//STEP0600 EXEC PGM=PGM5

//STEP0700 EXEC PGM=PGM6

##

//STEP0800 EXEC PGM=PGM7

//STEP0900 EXEC PGM=PGM8



----------------------------------------------------------------------

For IBM-MAIN subscribe / signoff / archive access instructions,

send email to [email protected] with the message: INFO IBM-MAIN

This e-mail transmission contains information that is confidential and may be 
privileged.   It is intended only for the addressee(s) named above. If you 
receive this e-mail in error, please do not read, copy or disseminate it in any 
manner. If you are not the intended recipient, any disclosure, copying, 
distribution or use of the contents of this information is prohibited. Please 
reply to the message immediately by informing the sender that the message was 
misdirected. After replying, please erase it from your computer system. Your 
assistance in correcting this error is appreciated.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to