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

how to obtain return code of a job from SAR


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

New User


Joined: 26 Jun 2009
Posts: 32
Location: Chennai

PostPosted: Sun Nov 15, 2009 11:53 am
Reply with quote

Hi,
We are using SAR - CA-View 11.0 . I have an requirement to fetch the return code of jobs from the SAR and if the return code is non-zero a report has to be created. Any pointers and suggestions to get this done would be helpful.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


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

PostPosted: Sun Nov 15, 2009 3:33 pm
Reply with quote

Hi,

I think that there is no way to get the RC alone from SAR.

Retrieve the whole job data from SAR using -0 as GEN number, put the fetched data in PS & get the RC thru REXX or some other prog. language?

Why cant u use Scheduler to get this data.Can u let us know what scheduler u use? If u have CA7 then it can be accessed thru batch & get the info easily.


Code:
//UNLOAD   EXEC PGM=SARBCH,PARM='SAR.SARJLD01'   
//SYSPRINT DD SYSOUT=*,DCB=BLKSIZE=133           
//REPORT   DD SYSOUT=*,DCB=BLKSIZE=133           
//SARLOAD  DD DSN=XK89.BORED.PROGRAMR,DISP=MOD         
//SYSIN    DD *                                   
/LOAD ID=CICDLMC GEN=-0                                       
/* 
Back to top
View user's profile Send private message
r arunmoezhi

New User


Joined: 26 Jun 2009
Posts: 32
Location: Chennai

PostPosted: Sun Nov 15, 2009 4:44 pm
Reply with quote

I'm not sure of the scheduler we use. But we call that "operations control and planning". I guess its CA7. I'll confirm this once i go to office icon_smile.gif
Back to top
View user's profile Send private message
r arunmoezhi

New User


Joined: 26 Jun 2009
Posts: 32
Location: Chennai

PostPosted: Thu Nov 19, 2009 5:23 pm
Reply with quote

Code:

 --------------------- OPERATIONS PLANNING AND CONTROL     ---------------------
 Option ===>                                                                   
                                                                               
 Welcome to TWS V8R3M0  You are communicating with OPCE                         
                                                                               
                                                                               
 Select one of the following options and press ENTER.                           
                                                                               
 0 OPTIONS           - Define OPC dialog user parameters and options           
                                                                               
 1 DATABASE          - Display or update OPC data base information             
 2 LTP               - Long Term Plan query and update                         
 3 DAILY PLANNING    - Produce daily plans, real and trial                     
 4 WORK STATIONS     - Work station communication                               
 5 MCP               - Modify the Current Plan                                 
 6 QCP               - Query the status of work in progress                     
 7 OLD OPERATIONS    - Restart old operations from the DB2 repository           
                                                                               
 9 SERVICE FUNC      - Perform OPC service functions                           
 10 OPTIONAL FUNC    - Optional functions                                       
 X EXIT              - Exit from the OPC dialog                                 


Please find the the screenshot of the scheduler we use
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Nov 19, 2009 6:08 pm
Reply with quote

TWS = Tivoli Workload Scheduler, presumably. It definitely is not CA-7.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 19, 2009 8:15 pm
Reply with quote

r arunmoezhi wrote:
Hi,
We are using SAR - CA-View 11.0 . I have an requirement to fetch the return code of jobs from the SAR and if the return code is non-zero a report has to be created. Any pointers and suggestions to get this done would be helpful.

Once again we have a nomination for the annual wheel reinvention request.

It is almost certain that your performance / capacity planning team have analysed the SMF data and have this information readily available. From the form that it would be in, a simple SAS report is all that would be needed, and if you can't do it, they probably would in a matter of minutes.

Of course, if you want to waste hours reinventing the wheel ......... icon_evil.gif
But then I'm not paying for it
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 run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top