Column Title Justification

How to:

Reference:

You can specify whether column titles in a report are left-justified, right-justified, or centered. By default, column titles for alphanumeric fields are left-justified, and column titles for numeric and date fields are right-justified over the displayed column.

Syntax: How to Justify Column Titles

The syntax to alter default justification is:

fieldname [alignment] [/format]

where:

alignment

Specifies the alignment of the column title.

/R specifies that the column title is to be right-justified.

/L specifies that the column title is to be left-justified.

/C specifies that the column title is to be centered.

/format

Is an optional format specification for the field.

Reference: Usage Notes for Justifying Column Titles

  • You may specify justification for display fields, BY fields, ACROSS fields, column totals, and row totals. For ACROSS fields, data values, not column titles, are justified as specified.
  • For display commands and row totals only, the justification parameter may be combined with a format specification, which precedes or follows the justification parameter (for example, PRINT CAR/A8/R MODEL/C/A15).
  • If a title is specified with an AS phrase or in the Master File, that title is justified as specified for the field.
  • When multiple ACROSS fields are requested, justification is performed on the lowest ACROSS level only. All other justification parameters for ACROSS fields are ignored.

Example: Justifying Column Titles

The following example illustrates column title justification with a format specification, a BY field specification, and an AS phrase specification:

TABLE FILE CAR
PRINT MODEL/A10 STANDARD/A15/R AS 'RJUST,STANDARD' BY CAR/C
WHERE CAR EQ 'JAGUAR' OR 'TOYOTA'
END

The output is:

                                        RJUST
       CAR        MODEL              STANDARD
----------------  -----       ---------------
JAGUAR            V12XKE AUT  POWER STEERING 
                  XJ12L AUTO  RECLINING BUCKE
                              WHITEWALL RADIA
                              WRAP AROUND BUM
                              4 WHEEL DISC BR
TOYOTA            COROLLA 4   BODY SIDE MOLDI
                              MACPHERSON STRU

Information Builders