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 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 Why TS/OP would Not contact site supp... RahulG31 All Other Mainframe Topics 2 Wed Mar 22, 2017 7:46 am
No new posts Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm
No new posts Sorting group data rajella DFSORT/ICETOOL 4 Sun Jan 22, 2017 11:32 pm
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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