execute only the even no. of steps



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

execute only the even no. of steps

Postby sankar » Thu May 29, 2008 8:22 pm

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
sankar
 
Posts: 6
Joined: Wed Mar 26, 2008 8:36 pm
Has thanked: 0 time
Been thanked: 0 time

Re: execute only the even no. of steps

Postby dick scherrer » Thu May 29, 2008 11:55 pm

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. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: execute only the even no. of steps

Postby Bill Dennis » Sat May 31, 2008 2:43 am

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)
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: execute only the even no. of steps

Postby dick scherrer » Sat May 31, 2008 3:17 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post