

5. FILES › 5.2 Batch Information Area Files › 5.2.2 Batch User Job Suspend File (BAT_JS) › 5.2.2.4 BAT_JS Retrieval Examples
5.2.2.4 BAT_JS Retrieval Examples
This section presents typical BAT_JS retrieval examples.
1. Print all executions of job 'PXY004' for yesterday.
DATA;
SET &pBATX..BATJOB01
&pBATX..BAT_JS01;
IF JOBSUSPN LE 1;
IF DATEPART(ENDTS)=TODAY()-1 OR
DATEPART(STARTTS)=TODAY()-1;
IF JOB='PXY004';
PROC PRINT; VAR SYSID JOB RDRTS STARTTS ENDTS;
2. Print all jobs that are partially accounted for and are
being carried in the job suspension files.
DATA;
SET &pBATX..BAT_JS01;
PROC PRINT; VAR SYSID JOB RDRTS STARTTS ENDTS
JOBSUSPN;
3. Print all jobs that have terminated, have not purged, and
have been suspended for more than two days.
DATA;
SET &pBATX..BAT_JS01;
X=SUBSTR(JOBMASK,3,1);
IF X='J';
IF JOBSUSPN > 2;
PROC PRINT;
VAR SYSID JOB RDRTS STARTTS ENDTS
JOBSUSPN JOBMASK;
Copyright © 2014 CA.
All rights reserved.
 
|
|