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.


Top of page

x
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.


Top of page

x
Reference: Usage Notes for Justifying Column Titles


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