Previous Topic: SORT ASCENDING Operand-Sort in Ascending OrderNext Topic: Use Other Commands with the TAB Command


Sort Reports by Identifier

To have your reports sorted by the identifier, add the SORT ALPHA operand to the TAB command.

The following commands generate a report sorted alphanumerically by transaction ID:

TAB TRANID FOR 20 SORT ALPHA,
 TRAN LIFE AND TRAN USE AND TRAN MAXLIFE
END
RUN

A report like the following is generated:

TRAN TRAN TRAN TRAN ID LIFE USE MAX LIFE -------- -------- -------- -------- BOAG 14.22 4 27.86 BOEF 35.32 2 58.14 BOEN 44.51 8 130.6 CATD 0.465 125 7.752 CEMT 60.92 4 218.6 CHAI 0.193 160 1.475 CHAT 0.190 24 0.802 CIRB 9.981 2 13.30 CRSQ 0.795 7 3.738 CSAC 0.066 25 0.647 CSDA 0.510 2 1.004 -------- -------- -------- -------- SUMMARY 77.15 1342 0.000 -------- -------- -------- --------