IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Save output of SAR to file.


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Satyajit

New User


Joined: 25 Jan 2006
Posts: 27

PostPosted: Mon Jun 23, 2008 4:05 pm
Reply with quote

Is there any way to save output of SAR to a file.
Back to top
View user's profile Send private message
ssk1711

New User


Joined: 16 Jun 2008
Posts: 40
Location: bangalore

PostPosted: Mon Jun 23, 2008 5:31 pm
Reply with quote

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
View user's profile Send private message
Satyajit

New User


Joined: 25 Jan 2006
Posts: 27

PostPosted: Mon Jun 23, 2008 5:47 pm
Reply with quote

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
View user's profile Send private message
bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 213
Location: Cochin/Kerala/India

PostPosted: Mon Jun 23, 2008 6:02 pm
Reply with quote

Hi,
U can use SARBCH utility to dowload SAR details to the file.
Back to top
View user's profile Send private message
senthilssg

New User


Joined: 09 Dec 2005
Posts: 64
Location: USA

PostPosted: Tue Jun 24, 2008 4:35 am
Reply with quote

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
View user's profile Send private message
Satyajit

New User


Joined: 25 Jan 2006
Posts: 27

PostPosted: Wed Jun 25, 2008 3:52 pm
Reply with quote

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
View user's profile Send private message
Paddy

New User


Joined: 12 Sep 2005
Posts: 46
Location: Paris France

PostPosted: Wed Jun 25, 2008 5:20 pm
Reply with quote

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 icon_arrow.gif
Back to top
View user's profile Send private message
Satyajit

New User


Joined: 25 Jan 2006
Posts: 27

PostPosted: Fri Aug 22, 2008 5:56 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 22, 2008 6:36 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top