Previous Topic: DAY Operand—Organize by the Day of the Week

Next Topic: Organize by Date, Time, or Both and Resource

Organize a Report by Resource Using an ID Option

You can organize tabular reports by a type of resource, such as transactions or terminals, or by individual resources within a type. Specify an ID option with or without identifiers following the TAB command and preceding any variables. Identifiers are listed in the first column, in descending order of the value of the first variable specified. For more about sorting reports, see How Report Sorting Works in this chapter.

The following example uses the same commands as in the example DATETIME Operand except that the ID option TRANID replaces the DATETIME operand. Using TRANID organizes the resulting report by transaction rather than by date and time.

TAB TRANID TRAN USE      AND,
           TRAN LIFE     AND,
           TRAN MAXLIFE
 EACH HOUR
 FROM 12/08/08 10:00:00
 TO   12/08/08 18:00:00
END
RUN

A report like the following is generated:

TRAN TRAN TRAN TRAN ID USE LIFE MAX LIFE -------- -------- -------- -------- PSPI 97 0.149 1.060 TCP 57 912.2 913.0 . . . VGBR 1 0.371 0.371 -------- -------- -------- -------- SUMMARY 324 349.2 5508 -------- -------- -------- --------