Page 1 of 1

execute only the even no. of steps

PostPosted: Thu May 29, 2008 8:22 pm
by sankar
Hi all,
I have a job which has ten steps and i need to execute only the even no. of steps(i.e.) 2,4,6,8...can anyone suggest me the way which uses the overriding parameter concept.

i know using IEBEDIT we can solve this situation..but i don't want that since the job is in production dataset.

With regards,
sankar

Re: execute only the even no. of steps

PostPosted: Thu May 29, 2008 11:55 pm
by dick scherrer
Hello,

can anyone suggest me the way which uses the overriding parameter concept.
Probably not. . .

i know using IEBEDIT we can solve this situation..but i don't want that since the job is in production dataset.
What does having the job in production have to do with anything? Using IEBEDIT will not change anything, it just customizes what is submitted. . .

Re: execute only the even no. of steps

PostPosted: Sat May 31, 2008 2:43 am
by Bill Dennis
1. IEBEDIT can remove steps from a job and copy the result to an output file.

2. You could add COND parameters to the "odd" steps that would never be matched .

//* only run when a prior step has COND CODE=4000
//STEP2 EXEC PGM=B,COND=(4000,NE)

Re: execute only the even no. of steps

PostPosted: Sat May 31, 2008 3:17 am
by dick scherrer
Hello,

Look here and scroll down to IEBEDIT.
http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/dgt1u104/CCONTENTS

Using control info like the following,
EDIT   START=JOBA,TYPE=INCLUDE,STEPNAME=(STEPC,STEPD)
you can INCLUDE or EXCLUDE steps to placed in the output.

Depending on how your current jcl is set up, you may or may not need to modify the COND checking.