Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1532
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
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us