Previous Topic: Notes

Next Topic: Report Functions


Example

INPUT primary-input-file
SELECT REC TYPE EQ 'E'
BREAK JOB NAME
SORT
LIST(SUM) JOB NAME,
               CPU TIME,
               CPU TIME(MX),
               CPU TIME(MN),
               CPU TIME(AV),
               CPU TIME(PC)

Assume that the records in the files are:

Rec#

JOB NAME

CPU TIME

1

A

5 seconds

2

A

3 seconds

3

A

1 second

4

B

3 seconds

5

B

18 seconds

6

B

6 seconds

The report is as follows:

 MAX       MIN        AVG       PCT                 CPU      CPU       CPU        CPU       CPU   JOB NAME      TIME     TIME      TIME       TIME      TIME   ________      ____     ____      ____       ____      ____   A              9        5         1          3         25   B              27       18        3          9         75   GRAND TOTAL    36       18        1          6         100