Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Save output of SAR to file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Save output of SAR to file.
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    Post subject:
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    Post subject:
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: 208
Location: Cochin/Kerala/India

PostPosted: Mon Jun 23, 2008 6:02 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Aug 22, 2008 6:36 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us