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

How to get the SAR Library which lists the Job names


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gileshpg

New User


Joined: 22 May 2008
Posts: 27
Location: Bangaluru

PostPosted: Mon Jun 11, 2012 2:35 pm
Reply with quote

Hi,

Is there any way to get the SAR library that lists the entire jobs. My requirement is to get the job names which is in the SAR. I need to list out the jobs which ran. Is this available in any of the PDS or file?

Thanks.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Jun 11, 2012 2:40 pm
Reply with quote

i often wonder why people post on the internet
questions
that can be easily answered by the person sitting next to them or a phone call away.

gileshpg,

PDS: SYS1.SAR.ALL.INFO will provide you with what you need.
Back to top
View user's profile Send private message
gileshpg

New User


Joined: 22 May 2008
Posts: 27
Location: Bangaluru

PostPosted: Mon Jun 11, 2012 2:53 pm
Reply with quote

Hi Dick,
people post something when they struck up somewhere. icon_smile.gif

the PDS which you said is found on my system. I have lot of SYS.* dataset name in my system. Is anybody else have any other suggestions?

Thanks,
Gilesh
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Jun 11, 2012 2:56 pm
Reply with quote

No-one at your site knows anything about SAR?

Did you look for the specific name and not find it, or just think that there are lots of datasets that could start like that, and it is tiring to think some more?

If you can't find the actual, and no-one there knows anything, did you try SYS1.SAR and see if there is anything likely?
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Mon Jun 11, 2012 2:59 pm
Reply with quote

Quote:
Is there any way to get the SAR library that lists the entire jobs.
Is this available in any of the PDS or file?

Hi,
SAR displays the data from its own database, which can be read only by using CA supplied utilities.(SARBCH is one such utility)

You can get the DB name from SAR screen as below,
Code:
CA View ALL -- Primary Selection for WELLS.SARDB  <-- (this thing right here) -----------------------------
Command ===>                                                                   
                                                                               
Sysout ID     ===> WELLS*                                                     
Select By     ===> R                     (R, I, IL, or IR)                     
Index Name    ===>               Value ===>                                   
              ===>                     ===>                                   
              ===>                     ===>                                   


Alternatively go to SDSF and look for SAR started task,
There maybe a JCL something similar to
PGM=SARSTC,PARM='WELLS.SARDB,&OPT'

WELLS.SARDB is the database name.
You would still need SARBCH or any other similar program to read the DB

Hope it helps.
Back to top
View user's profile Send private message
Ronny John

New User


Joined: 30 Mar 2010
Posts: 33
Location: USA

PostPosted: Sat Jun 23, 2012 1:49 am
Reply with quote

Gilesh,
Try running SARBCH job with teh step below

Code:
//STEP1    EXEC PGM=SARBCH
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//REPORT DD DSN=TEST.RON.DATASET,
//            DISP=(MOD,CATLG,DELETE),
//            DCB=(BLKSIZE=0,LRECL=152,RECFM=FB),
//            SPACE=(CYL,(1,1),RLSE),UNIT=DISK
//SYSIN    DD  *
/DBASE NAME=XX.XXXXX.XX
/LIST ID=*
/*
//*
Back to top
View user's profile Send private message
gileshpg

New User


Joined: 22 May 2008
Posts: 27
Location: Bangaluru

PostPosted: Tue Jun 26, 2012 5:47 pm
Reply with quote

Thanks Ronny...it is working icon_smile.gif
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Calling an Open C library function in... CICS 1
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Capturing COBOL job and program names... All Other Mainframe Topics 2
Search our Forums:

Back to Top