>> I should know this - I've been using JCL for decades - but I find I'm >> uncertain about something I haven't done in a while. I have a production >> job here that will eventually be rewritten, but for now I'm just going to >> tell it to execute only the first couple steps. I had in mind inserting >> "//" before the part of the JCL that I want to skip. Very simple.
Bob, 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 .... //STEP0200 EXEC PGM=PGM1 .... //STEP0300 EXEC PGM=PGM2 .... //STEP0400 EXEC PGM=PGM3 .... //STEP0500 EXEC PGM=PGM4 .... //STEP0600 EXEC PGM=PGM5 .... //STEP0700 EXEC PGM=PGM6 .... //STEP0800 EXEC PGM=PGM7 .... //STEP0900 EXEC PGM=PGM8 .... //STEP1000 EXEC PGM=PGM9 So, from the above example. You code it as follows. //STEP0100 EXEC PGM=PGM0 .... //STEP0200 EXEC PGM=PGM1 .... //STEP0300 EXEC PGM=PGM2 .... //STEP0400 EXEC PGM=PGM3 .... //STEP0500 EXEC PGM=PGM4 .... //SAVE DD DATA,DLM=## //STEP0600 EXEC PGM=PGM5 .... //STEP0700 EXEC PGM=PGM6 .... //STEP0800 EXEC PGM=PGM7 .... //STEP0900 EXEC PGM=PGM8 .... //STEP1000 EXEC PGM=PGM9 For example, if you want to run steps 1 thru 5 and 8 thru 10 you code something like this //STEP0100 EXEC PGM=PGM0 .... //STEP0200 EXEC PGM=PGM1 .... //STEP0300 EXEC PGM=PGM2 .... //STEP0400 EXEC PGM=PGM3 .... //STEP0500 EXEC PGM=PGM4 .... //SAVE DD DATA,DLM=## //STEP0600 EXEC PGM=PGM5 .... //STEP0700 EXEC PGM=PGM6 .... ## //STEP0800 EXEC PGM=PGM7 .... //STEP0900 EXEC PGM=PGM8 .... //STEP1000 EXEC PGM=PGM9 Thanks, Kolusu ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
