Page 1 of 1

How to start a job with respect to a Job return code.

PostPosted: Tue Jan 27, 2009 1:15 pm
by venkateceusa
Hi,

I want to start a job B if the job A return code is 0. Is it possible to do that in Rexx.

Regards,
Venkatraman.

Re: How to start a job with respect to a Job return code.

PostPosted: Tue Jan 27, 2009 1:24 pm
by dick scherrer
Hello and welcome to the forum,

Suggest you either use the scheduling software in use on the system or add a step at the end of jobA to submit jobB via the internal reader if the conditon code for jobA is zero.

I do not understand why rexx would be used. . .

Re: How to start a job with respect to a Job return code.

PostPosted: Tue Jan 27, 2009 1:37 pm
by venkateceusa
Hi,

Dou have any sample code for that

Re: How to start a job with respect to a Job return code.

PostPosted: Wed Jan 28, 2009 4:30 am
by dick scherrer
Hello,

Time permitting, i'll dig up some jcl later.

Suggest this one you can do more quickly yourself. Create IEBGENER jcl that copies the job you want run (sysut1 = your jcl) to the internal reader (sysut2). Check with someone on your system how the internal reader is referenced on your system - it will be something like sysout=(b,intrdr).