Page 1 of 1

To track RC of Job submitted thru REXX

PostPosted: Wed Feb 15, 2012 9:56 am
by Balamurugan21
Hi All ,

I currently have a requirment where i need to submit a job using REXX ( By using a panel , get the inputs , generate the JCL & submit it .) I need to track the retrun code of the job in case of failure of job & display it in the panel with an genric error message along with return code.

Currently i coud trace only whether the job has completed successfully using STATUS JOBNAME(JOBID) but not whether it has returned RC=0 .

Can any one help me in resolving this...

Re: To track RC of Job submitted thru REXX

PostPosted: Wed Feb 15, 2012 12:28 pm
by expat
So you are quite happy for the terminal to sit there locked for potentially the whole day doing nothing.

Think the strategy again, CORRECTLY.

Re: To track RC of Job submitted thru REXX

PostPosted: Wed Feb 15, 2012 3:38 pm
by Akatsukami
expat wrote:So you are quite happy for the terminal to sit there locked for potentially the whole day doing nothing.

Of course; he's then getting paid for doing nothing, not even posting here whining "i need a jcl 2 sort a file can any1 help me it is urgent?!?!?!"

Re: To track RC of Job submitted thru REXX

PostPosted: Thu Feb 16, 2012 2:30 am
by Pedro
If you can use STATUS, perhaps you can use the OUTPUT command to capture job output.

But, STATUS and OUTPUT have given way to SDSF REXX to capture job output. See "Implementing REXX Support in SDSF", SG24-7419. Chapter 7 has several coding examples... each one demonstrates part of the task. You should be able to cobble them together to get what you want.

Re: To track RC of Job submitted thru REXX

PostPosted: Thu Feb 16, 2012 2:49 am
by Akatsukami
Balamurugan21 wrote:I currently have a requirment where i need to submit a job using REXX ( By using a panel , get the inputs , generate the JCL & submit it .) I need to track the retrun code of the job in case of failure of job & display it in the panel with an genric error message along with return code.

Read the fine manual on NOTIFY.