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
 

 

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: 1504
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: 8117
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 EXIT or RETURN cvnlynn CLIST & REXX 9 Wed Jul 19, 2017 2:50 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am


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