Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Sun May 23, 2004 8:14 pm Post subject:
Pzmohanty,
With the control cards shown above it will copy all the outputs of the jobs with the same jobname. You can use the parameters like LAST , First to copy the latest and oldest job outputs respectively.
/* REXX this program saves the sdsf data into a PDS */
arg jobinfo
dsname = 'TEST.CHANDRA.JOBLISTS(delete2)'
if dsname = '' then exit 8
if jobinfo <> '' then
do
/* save output from the job identified in parameter jobinfo */
parse var jobinfo jobname '(' jobid ')' .
if jobname = '' then exit 8
if jobid = '' then exit 8
if _________________ Regards,
Chandra
Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
Posted: Thu Oct 07, 2004 8:30 pm Post subject:
I know what Chandra is doing.
He is trying to save a job where he does not have autority to save the entire job. But if he gives a '?' against the job in spool then he is allowed to save individual DDNAMES.
Is it possible to do this through REXX or JCL, like saving JESMSGLG of a job?
Can someone tell what's wrong with this.. I'm running this JOBA and wanted to save the job to a dataset. I had multiple job with the same JOBNAME(JOBA). It saved the previous job, it seems like it's not refering to my job as the LAST job.
//WRITE EXEC PGM=SDSF
//ISFOUT DD DUMMY
//ISFIN DD *
ST
PT ODSN 'MY DATASET NAME'
FIND JOBA LAST
++X
PRINT CLOSE
END
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Thu Apr 14, 2005 7:27 am Post subject:
THE_EYE,
You cannot the refer the same job you are running as the last job. If you want to save the current job sysout why not allocate the sysout to a dataset?
The only thing here is, it gives only partial job log. Meaning - if you have 5 steps in your job and the last step is the SDSF capturing step (listed above), the job log will show only the 4 steps that have COMPLETED.
I hope this should be okay for your requirement, unless you wanna capture the Total job time or CPU time etc...
All times are GMT - 5 Hours Goto page Previous1, 2
Page 2 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum