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

How to get the presence of job in SAR from a group of jobs.


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

New User


Joined: 03 Oct 2008
Posts: 14
Location: chennai

PostPosted: Wed Oct 29, 2008 5:42 pm
Reply with quote

Hi All,

I am running a single job step to get multiple job info using SARBCH.

If any job is not present in SAR, I want to write the job name into another file.

I am using the following code,

Code:
//XXXXXXH JOB (CKDC),'ARPITA',CLASS=0,MSGCLASS=0,           
//         NOTIFY=&SYSUID                                     
//STEP0    EXEC UCC11                                         
//STEP1    EXEC PGM=SARBCH,PARM='SAR database'                   
//REPORT   DD  DSN=XXXXX.SARDST.OUTJCL1,                   
//             DISP=(MOD,CATLG,DELETE),                       
//             SPACE=(CYL,(10,10),RLSE),                     
//             DCB=(RECFM=FBA,LRECL=133,BLKSIZE=1330,DSORG=PS)
//SYSPRINT DD  SYSOUT=*                                       
//SYSIN    DD  *                                             
/PRINT ID=JOB1,DDNAME=REPORT                             
/PRINT ID=ABC,DDNAME=REPORT                             
/PRINT ID=JOB2,DDNAME=REPORT                             
/PRINT ID=JOB3,DDNAME=REPORT                             
/PRINT ID=JOB4,DDNAME=REPORT     
/*                       



In this case, suppose job 'ABC' is not present in SAR. How can i get this info in any other file?

Please guide.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Oct 29, 2008 11:34 pm
Reply with quote

Hello,

Use the output from your job as input to a process to parse out the "not found(s)" and write the jobname(s) into the "other file".
Back to top
View user's profile Send private message
arpita70003

New User


Joined: 03 Oct 2008
Posts: 14
Location: chennai

PostPosted: Thu Oct 30, 2008 10:28 am
Reply with quote

Hi,

My current output file doesn't have any entry of the 'ABC' job.

And I cant give a search in the output file to parse all the 'existing' jobs and get the rest 'not exist' one, coz the job detail is passed by REXX and entered by the user through panel.


Let me know if i am wrong.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Oct 30, 2008 7:11 pm
Reply with quote

Hello,

Quote:
My current output file doesn't have any entry of the 'ABC' job.


Is there not an entry in the //REPORT DD that mentions that the job was not found? I suspect the PRINT statement produced something in the report.

Why can you not retrieve the "not founds" from that REPORT file?

There must be something i do not understand, but it sounds like you have what you need to identify these jobs icon_confused.gif
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 How to create a list of SAR jobs with... CA Products 3
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Compare latest 2 rows of a table usin... DB2 1
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
Search our Forums:

Back to Top