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



IBM's Command List programming language & Restructured Extended Executor

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

Postby Y Harikumar » Wed Aug 24, 2011 2:20 pm

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
Y Harikumar
 
Posts: 6
Joined: Mon Aug 15, 2011 9:07 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby NicC » Wed Aug 24, 2011 2:50 pm

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)
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

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

Postby Y Harikumar » Wed Aug 24, 2011 3:17 pm

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
Y Harikumar
 
Posts: 6
Joined: Mon Aug 15, 2011 9:07 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby prino » Wed Aug 24, 2011 4:59 pm

And what happens if your job doesn't start for 42 hours? Will you just sit behind your terminal twiddling your thumbs?
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 641
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 29 times

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

Postby mongan » Wed Aug 24, 2011 6:22 pm

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.
User avatar
mongan
 
Posts: 211
Joined: Tue Jan 11, 2011 8:32 pm
Has thanked: 1 time
Been thanked: 5 times

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

Postby Akatsukami » Wed Aug 24, 2011 7:02 pm

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

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

Postby dick scherrer » Wed Aug 24, 2011 10:19 pm

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

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

Postby enrico-sorichetti » Wed Aug 24, 2011 10:53 pm

see here for some discussion and redbook links
clist-rexx/topic6182.html

and here for working snippets ... TESTED
http://ibmmainframes.com/about54926.html
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

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

Postby Y Harikumar » Thu Aug 25, 2011 11:43 am

Thanks so much.
Y Harikumar
 
Posts: 6
Joined: Mon Aug 15, 2011 9:07 pm
Has thanked: 0 time
Been thanked: 0 time


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post