View previous topic :: View next topic
|
Author |
Message |
Satyajit
New User
Joined: 25 Jan 2006 Posts: 27
|
|
|
|
Is there any way to save output of SAR to a file. |
|
Back to top |
|
|
ssk1711
New User
Joined: 16 Jun 2008 Posts: 40 Location: bangalore
|
|
|
|
Hi
I am not sure about SAR but you can store it in SPOOL by giving XDC command aganist the JOB u r interested. |
|
Back to top |
|
|
Satyajit
New User
Joined: 25 Jan 2006 Posts: 27
|
|
|
|
ssk1711 wrote: |
Hi
I am not sure about SAR but you can store it in SPOOL by giving XDC command against the JOB u r interested. |
I am aware of XDC. It helps to save the detail of job in the spool.It doesnt solve my purpose, I want to save the joblist that we get in the SAR |
|
Back to top |
|
|
bipinpeter
Active User
Joined: 18 Jun 2007 Posts: 213 Location: Cochin/Kerala/India
|
|
|
|
Hi,
U can use SARBCH utility to dowload SAR details to the file. |
|
Back to top |
|
|
senthilssg
New User
Joined: 09 Dec 2005 Posts: 64 Location: USA
|
|
|
|
Please use following SARBCH batch JCL to print the job output from SAR to DASD dataset .
Code: |
//**ADD YOUR JOB CARD HERE
//*
//* -------------------------------------------------------------------
//* JOB TO PRINT SAR OUTPUT DIRECTLY TO DASD
//* NOTES:
//*
//* LEAVE DBASE NAME ALONE
//*
//* ID = IS THE NAME OF THE SYSOUT TO BE COPIED
//* PAGE = IS THE SAR PAGES TO PRINT IE. PAGE=(3) OR PAGE=(1:3)
//* GEN = IS THE SAR GEN# THE SYSOUT IS ON
//* SEQ = IS THE OCCURANCE# OF THE SYSOUT ON THE GEN (IF MULT OCURR)
//*RECORD = (###:###) RECORD/LINES
//*
//* YOU CAN GET GEN,SEQ VALUE FOR SAR ID BY PRESSING F11 KEY IN SAR
//*
//* EXAMPLE:
//*
//* /DBASE NAME=SAR.PR.S01
//* /PRINT DDNAME=OUTDS ID=DLYDABCD GEN=6735 SEQ=1
//* /PRINT DDNAME=OUTDS ID=DLYDABCD GEN=5041 PAGE=6:20
//* /PRINT DDNAME=OUTDS ID=DLYDABCD PAGE=(1:2) GEN=1823 SEQ=-3
//*
//* -------------------------------------------------------------------
//PRINTDS EXEC PGM=SARBCH,REGION=6M
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//OUTDS DD DSN=OUTPUT-DATASET-NAME,
// DISP=(,CATLG,DELETE),SPACE=(TRK,(20,10),RLSE),
// LRECL=133,RECFM=FBA,BLKSIZE=27930
//SYSIN DD *
/DBASE NAME=database-name
/PRINT DDNAME=OUTDS ID=job-name GEN=gen-no SEQ=seq-no
/*
|
Thanks
Senthil |
|
Back to top |
|
|
Satyajit
New User
Joined: 25 Jan 2006 Posts: 27
|
|
|
|
This is not what i want. I want the "SYSOUT SELECTION LIST" to be printed to a file.
ID JOBNAME JOBID ARCH DATE/TIME LOC LINES PAGES XCODE
ZTE1AHL1 ZTE1AHL1 JOB35587 06/25/08 01:35 DISK 324 6
ZTE1AH01 ZTE1AH01 JOB36144 06/25/08 03:28 DISK 2785 27 0004
The above list... is there any way? |
|
Back to top |
|
|
Paddy
New User
Joined: 12 Sep 2005 Posts: 46 Location: Paris France
|
|
|
|
HI,
For print list sysout to file code a DD card REPORT into the JCL. Like this :
//REPORT DD DISP=SHR,DSN=MY.DATASET.OUTPUT
//SYSIN DD *
/DBASE NAME=MY.DBASE
/LIST ID=XXX GEN=
Regards.
Paddy |
|
Back to top |
|
|
Satyajit
New User
Joined: 25 Jan 2006 Posts: 27
|
|
|
|
ok its working ... but its taking too much time ... can any one tell me why? and is there any solution for this? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
can any one tell me why? |
I suspect not. You have not provided anything that could be used to help you.
How much is "too much" time? How much time is being used? What kind of statistics are generated by the job? How much "clutter" is in the SAR system? |
|
Back to top |
|
|
|