View previous topic :: View next topic
|
Author |
Message |
Ramnathdude
New User
Joined: 19 Dec 2007 Posts: 7 Location: Chennai
|
|
|
|
I want to copy the list of jobs present in SAR for a cycle date onto a dataset. I knew that using SARBCH utility we can fetch the details of a particular job, but can we do it for a list of jobs that run for a particular date. Also I dont need the expanded view of the jobs, just need the job details with their return codes.
Regards,
Ramnath |
|
Back to top |
|
|
Prasanthhere
Active User
Joined: 03 Aug 2005 Posts: 306
|
|
|
|
I guess the PGM=SARBCH u can use for the requirement.
//STEP1 EXEC PGM=SARBCH
//SYSPRINT DD SYSOUT=*
//OUT1 DD DSN=YOUR.DATASET.TXT,DISP=(,CATLG,DELETE),
// UNIT=DISK,SPACE=(TRK,(300,50),RLSE),
// DCB=(RECFM=FBA,LRECL=153,BLKSIZE=27846)
//REPORT DD SYSOUT=*
//SYSIN DD *
/DBASE NAME=YOUR.SAR.DATABASE-NAME
/PRINT ID=SAR-REPORT.NAME,COPIES=1,DDNAME=OUTFILE
I haven't tried this... |
|
Back to top |
|
|
Ramnathdude
New User
Joined: 19 Dec 2007 Posts: 7 Location: Chennai
|
|
|
|
Hi Prasanth,
Thanks for the reply.
In the jcl above PRINT ID takes only one jobname whose details would be obtained in an expanded format onto a dataset.
My requirement is where I need all the SAR job details for a particular date only with their jobid, return codes etc written onto a dataset.
Regards,
Ramnath |
|
Back to top |
|
|
scorp_rahul22 Currently Banned New User
Joined: 06 Aug 2007 Posts: 42 Location: chennai
|
|
|
|
these things can be modified while exporting from a table,
or while taking that input for SARBCH program |
|
Back to top |
|
|
raak
Active User
Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
Quote: |
My requirement is where I need all the SAR job details for a particular date only with their jobid, return codes etc written onto a dataset. |
u can use this in the sysin to achieve ur requirement
/DBASE NAME=your.db.name
/LIST GEN=0 ID=jobname PASSWORD= |
|
Back to top |
|
|
RajkumarL
New User
Joined: 05 Oct 2006 Posts: 4
|
|
|
|
you should use one contol card for each job like this
/LIST GEN=* ID=jobname1
/LIST GEN=* ID=jobname2 |
|
Back to top |
|
|
|