Executing JCL steps in reverse order

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...
soumyap03
Posts: 2
Joined: Fri Feb 01, 2008 6:37 pm
Skillset: JCL,COBOL,REXX
Referer: Google

Executing JCL steps in reverse order

Postby soumyap03 » Fri Feb 01, 2008 6:45 pm

Can anyone please let me know how to execute JCL steps in reverse order??

User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

Re: Executing JCL steps in reverse order

Postby dick scherrer » Fri Feb 01, 2008 11:05 pm

Hello,

JCL executes from the "top" to the "bottom".

There is no command to run it "backwards".
Hope this helps,
d.sch.

soumyap03
Posts: 2
Joined: Fri Feb 01, 2008 6:37 pm
Skillset: JCL,COBOL,REXX
Referer: Google

Re: Executing JCL steps in reverse order

Postby soumyap03 » Mon Feb 04, 2008 12:36 pm

Thanks Dick, I would like to know, is there a way we can run the steps in any desired order atleast so that we can run it in reverse order???
:roll:

User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

Re: Executing JCL steps in reverse order

Postby dick scherrer » Mon Feb 04, 2008 8:35 pm

Hello,

You might want to read the documentation on a utility named IEBEDIT. It may or may not let you do what you want to do. Trying to run jcl "out of order" often causes more problems because of condition code testing and referbacks. It is far more straight forward to create a new set of jcl to meet the required sequence of execution.
Hope this helps,
d.sch.