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



IBM's Command List programming language & Restructured Extended Executor

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

Postby venkateceusa » Tue Jan 27, 2009 1:15 pm

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.
venkateceusa
 
Posts: 2
Joined: Tue Jan 27, 2009 1:09 pm
Has thanked: 0 time
Been thanked: 0 time

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

 

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

Postby dick scherrer » Tue Jan 27, 2009 1:24 pm

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

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

Postby venkateceusa » Tue Jan 27, 2009 1:37 pm

Hi,

Dou have any sample code for that
venkateceusa
 
Posts: 2
Joined: Tue Jan 27, 2009 1:09 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Wed Jan 28, 2009 4:30 am

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


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post