5. FILES › 5.2 Batch Information Area Files › 5.2.15 System Address Space Activity File (BAT_SA) › 5.2.15.4 BAT_SA Retrieval Examples
5.2.15.4 BAT_SA Retrieval Examples
This section presents typical BAT_SA retrieval examples.
1. Print the CPU time consumed yesterday by all all
intervals of system address space "CONSOLE" executing on
system "PROD".
DATA FILE1;
SET &pBATX..BAT_SA01;
IF JOB= 'CONSOLE' ;
IF SYSID='PROD' ;
%LET BY = JOB RDRTS ENDTS;
PROC SORT DATA=FILE1; BY &BY ;
PROC PRINT;
VAR SYSID JOB RDRTS ENDTS PGMCPUTM PGMTCBTM PGMSRBTM ;