5. FILES › 5.2 Batch Information Area Files › 5.2.4 SMF User TSO Activity File (BAT_TS) › 5.2.4.4 BAT_TS Retrieval Examples
5.2.4.4 BAT_TS Retrieval Examples
This section presents typical BAT_TS retrieval examples.
1. Print all TSO sessions for user 'PRC033' in the data
processed yesterday.
DATA FILE1;
SET &pBATX..BAT_TS01;
IF JOB='PRC033';
%LET BY = JOB RDRTS ;
%LET BREAK = RDRTS ;
PROC SORT DATA=FILE1; BY &BY ;
DATA FILE1;
SET FILE1;
%PGMSUM;
PROC PRINT; VAR SYSID JOB RDRTS PGMEXCTM PGMSERVU;
2. Print out the resource consumption of the TSO session for
user 'USR002' and display the measures for each interval
accounting record for the data processed yesterday.
DATA;
SET &pBATX..BAT_TS01;
IF JOB='USR002';
PROC PRINT; VAR SYSID JOB RDRTS PGMINTVL STARTTS
ENDTS PGMSERVU PGMCPUTM PGMEXCPS;