Page 1 of 1

JCL code to copy the joblog into a user defined PS file

PostPosted: Wed Aug 24, 2011 2:20 pm
by Y Harikumar
Hi All,

I have a requirement where I need to copy the JOB LOG of the same job into a userdefined PS file.
so that I can read that PS file in a REXX program to find out the RC of that job.

Please provide me the JCL code for the aboce requirement.

Regards

Hari

Re: JCL code to copy the joblog into a user defined PS file

PostPosted: Wed Aug 24, 2011 2:50 pm
by NicC
we do not provide code - we give assistance when you have a problem that you cannot resolve by google, manuals, searching the forum. You also need to give more info - like what spooler do you use - SDSF? If sdsf then look at the rexx/sdsf programming interface guide - probably in the SDSF manual(s)

Re: JCL code to copy the joblog into a user defined PS file

PostPosted: Wed Aug 24, 2011 3:17 pm
by Y Harikumar
Hi Nic,
sorry...
Our requirement is like this.
We have a Main REXX program which submits the TEMP JCL using Skeletons. Then, We need to capture the RC of that temp jcl in the main REXX program.

We should use messageclass=j in our temp JCL. Our systems are defined in such a way that, if we use msgclass=j, then the job sysout info will be moved from SDSF to EOS (SAR) as soon as the job gets complete.

So, we need help to findout a way to write the joblog to a userdefined dataset. Later, we can search that dataset using REXX for the RC of JCL.

Please advise.

thanks for your help.

regards

hari

Re: JCL code to copy the joblog into a user defined PS file

PostPosted: Wed Aug 24, 2011 4:59 pm
by prino
And what happens if your job doesn't start for 42 hours? Will you just sit behind your terminal twiddling your thumbs?

Re: JCL code to copy the joblog into a user defined PS file

PostPosted: Wed Aug 24, 2011 6:22 pm
by mongan
EOS or SAR? EOS is EOS, SAR is CA View. In any case if the output goes to EOS / SAR you can also send it from there to another destination, have not exactly done this though so I can not tell you the details.

Re: JCL code to copy the joblog into a user defined PS file

PostPosted: Wed Aug 24, 2011 7:02 pm
by Akatsukami
prino wrote:And what happens if your job doesn't start for 42 hours? Will you just sit behind your terminal twiddling your thumbs?

No, he'll be getting paid for sitting behind his terminal twiddling his thumbs.

Re: JCL code to copy the joblog into a user defined PS file

PostPosted: Wed Aug 24, 2011 10:19 pm
by dick scherrer
Hello,

Please advise.
As you were advised in your other similar topic, do not implement some rexx to wait for some batch job to complete. . .

If you set this up to run the rexx, then the batch job which (as a last step), submits the rexx again, there is no need to write the syslog to a separate ps. You can read this within the rexx code as rexx has an sdsf interface.

Re: JCL code to copy the joblog into a user defined PS file

PostPosted: Wed Aug 24, 2011 10:53 pm
by enrico-sorichetti
see here for some discussion and redbook links
clist-rexx/topic6182.html

and here for working snippets ... TESTED
http://ibmmainframes.com/about54926.html

Re: JCL code to copy the joblog into a user defined PS file

PostPosted: Thu Aug 25, 2011 11:43 am
by Y Harikumar
Thanks so much.