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 get the presence of job in SAR from a group of jobs.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: How to get the presence of job in SAR from a group of jobs.
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

Site Director


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

PostPosted: Wed Oct 29, 2008 11:34 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Oct 30, 2008 7:11 pm    Post subject:
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    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 List of jobs ran thru scheduler ddhar All Other Mainframe Topics 1 Tue Mar 27, 2018 4:32 am
No new posts Group changes and numbering the groups Auryn DB2 2 Tue Mar 20, 2018 7:12 pm
No new posts How to group and sum the decimal value sakrat DFSORT/ICETOOL 2 Tue Mar 06, 2018 9:13 pm
No new posts Conversion of DLI update Jobs as BMP ... Gopinath Shanmugam IMS DB/DC 3 Wed Dec 20, 2017 12:02 pm
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm

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