Previous Topic: 5.2.4.3 BAT_TS Usage Considerations

Next Topic: 5.2.5 System Task Program Activity File (BAT_ST)

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;