View previous topic :: View next topic
|
Author |
Message |
r arunmoezhi
New User
Joined: 26 Jun 2009 Posts: 32 Location: Chennai
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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 |
|
|
r arunmoezhi
New User
Joined: 26 Jun 2009 Posts: 32 Location: Chennai
|
|
|
|
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 |
|
Back to top |
|
|
r arunmoezhi
New User
Joined: 26 Jun 2009 Posts: 32 Location: Chennai
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
TWS = Tivoli Workload Scheduler, presumably. It definitely is not CA-7. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 .........
But then I'm not paying for it |
|
Back to top |
|
|
|