Help - need REXX code to copy job info from SAVRS(3.S) to PS



IBM's Command List programming language & Restructured Extended Executor

Help - need REXX code to copy job info from SAVRS(3.S) to PS

Postby sureshkumar454 » Wed Nov 04, 2009 5:10 pm

Hi Group....

I will submit number of JCL's every day on about 10 different systems at a time. I use to go to each system SAVRS (3.S) (not spool) to check the completion code of the job. Now i am planning to automate that using REXX. I referred some of the topics which will copy the job from spool to PDS. But i am unable to alter the code which will go to 3.S (SAVRS) and retrieve the job completion code.

Like i will give the jobname (TESTDATE) as a parameter in the rexx code and i will run it. The rexx code should create a PS and it should copy the below job (or multiple jobs with same jobname) information into the PS file from SAVRS.

below is the completed job in the SAVRS:
JOBNAME JOB # CCODE PROGRAMMER NAME END DATE
TESTDATE 0049160 RC=0000 READ DATE 04 NOV 2009.308
TESTDATE 0046233 RC=0000 READ DATE 04 NOV 2009.111

the same job information should present in my PS file after executing the rexx program. If any of you have any different approach for my requirement, please let me know, I would be greately thankful!!!

Thanks in advance.
sureshkumar454
 
Posts: 5
Joined: Wed Nov 04, 2009 4:17 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Help - need REXX code to copy job info from SAVRS(3.S) to PS

 

Re: Help - need REXX code to copy job info from SAVRS(3.S) to PS

Postby expat » Wed Nov 04, 2009 5:15 pm

The first thing that I would do is to have a chat with the capacity and performance group. It is about 95% probable that they already analyse the SMF data produced and have readily at hand the information that you require. They may even produce a similar report to the information that you need.

Why reinvent the wheel, go see if someone else has already invented it for you :mrgreen:
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Help - need REXX code to copy job info from SAVRS(3.S) to PS

Postby sureshkumar454 » Wed Nov 04, 2009 5:53 pm

Hi

Thanks for the reply.

I wanted to do the same using a REXX tool. And display the output to reduce the manual checking.

Please help..

Thanks,
Suresh.
sureshkumar454
 
Posts: 5
Joined: Wed Nov 04, 2009 4:17 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Help - need REXX code to copy job info from SAVRS(3.S) to PS

Postby expat » Wed Nov 04, 2009 7:06 pm

Did you actually read what I had written above.

If the data already exists from a different source, why do you want to reinvent the wheel and duplicate the exact same data in a completely different way.

Yes, you may want to do it in REXX, but why waste hour upon hour to duplicate what already exists. Just because you want to do this in a particular way does not make this a viable option if the data is already available :twisted:
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Help - need REXX code to copy job info from SAVRS(3.S) to PS

Postby sureshkumar454 » Wed Nov 04, 2009 7:43 pm

Thanks for the reply again.
I got the way to check them. Thanks for the information.

Regards,
Suresh.
sureshkumar454
 
Posts: 5
Joined: Wed Nov 04, 2009 4:17 pm
Has thanked: 0 time
Been thanked: 0 time


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post