arpita70003
New User
Joined: 03 Oct 2008 Posts: 14 Location: chennai
|
|
|
|
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. |
|
arpita70003
New User
Joined: 03 Oct 2008 Posts: 14 Location: chennai
|
|
|
|
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. |
|
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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  |
|