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
 

 

Capture RC from SAR & CA7 using REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Mon Mar 02, 2009 5:22 pm    Post subject: Capture RC from SAR & CA7 using REXX
Reply with quote

Hi all,

I have a requirement that i need to check the RC of the Jobs from SAR and prepare report that so and so Job completed with particular RC. can any please help me on this suggesting some ideas ?
Back to top
View user's profile Send private message

vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1491
Location: Chennai

PostPosted: Tue Mar 03, 2009 3:56 am    Post subject:
Reply with quote

Not sure this is the efficient way, but this works icon_biggrin.gif
Find out in which mainframe image the SAR database resides and access it via batch.
With the SAR details determine if the job has run using REXX.

Digging SMF records will also be equally interesting.

U can access the individual SAR reports in batch via GEN and SEQ parameter.
Or u can also access them like a GDG, through relative reference. -1,-2,-3 like that.


In our shop we use the below JCL to extract SAR details.
The program SARBCH might be different in your shop.

The SYSIN has the control cards for the specific job.


Code:
//UNLOAD   EXEC PGM=SARBCH,PARM='SAR.SARI01'                 
//SYSPRINT DD SYSOUT=*,DCB=BLKSIZE=133                       
//REPORT   DD SYSOUT=*,DCB=BLKSIZE=133                       
//SARLOAD  DD DSN=XK89.BORED.PROGRAMR,DISP=OLD                   
//SYSIN    DD *                                             
/LOAD ID=DLEN-AU20                                           
/*


From the extract you can do the processing.
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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