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
 
how to obtain return code of a job from SAR

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: how to obtain return code of a job from SAR
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: 1522
Location: Chennai

PostPosted: Sun Nov 15, 2009 3:33 pm    Post subject:
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    Post subject:
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    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Thu Nov 19, 2009 6:08 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 19, 2009 8:15 pm    Post subject: Re: how to obtain return code of a job from SAR
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    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 Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am

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