Previous Topic: TABulate Command-Produce Tabular ReportsNext Topic: TITLE1, TITLE2, and TITLE3 Commands


TAB2 Command-Build a Secondary Table

The TAB2 command builds a secondary table for each row of the table created by the TAB command.

This command has the following syntax:

TAB2 idoption[(identifiers)] variable [options] [HDR1(text)] [HDR2(text)] 
[SORT order] [FOR n] [AND,
 [TOP n]
 [BOTTOM n]
 variable [options] [HDR1(text)] [HDR2(text)]] [AND,...]

The TAB2 command uses the same operands as the TAB command, except that you cannot specify both a period operand and an ID option. The period operands are DATETIME, DATE, TIME, or DAY.

Note: For an explanation of the TAB2 operands, see the description of the TAB operands in TABulate Command in this chapter.

You cannot use the TAB2 command without the TAB command.

You can use the TAB2 command only if you also specify the TAB command with an ID option. You can specify a period option (DATETIME, DATE, TIME, and DAY) with either the TAB command or the TAB2 command, but not with both.

Examples: TAB2 Command

The following commands create a tabular report organized first by transaction ID and then by the date:

TAB  TRANID TRAN USE 
TAB2 DATE   TRAN USE
    EACH HOUR
END
RUN

More information:

Tabular Reports