Using QMF

Changing the alignment of the column heading and the data

You change the alignment of the column heading and the data in much the same way you define a new column.

For this example, you will change the data alignment to CENTER for the DEPT._NUMBER column.

To change column alignment:

  1. On the FORM.COLUMNS panel, move the cursor to the column whose alignment you want to change. For this example, move the cursor to the line for the DEPT NUMBER column.
  2. Press the Specify function key. The Specify panel displays.

    If you want to skip the Specify panel, type SPECIFY ALIGNMENT on the QMF command line. Then, move the cursor to the column whose alignment you want to change and press Enter.

  3. Select Alignment. The Alignment panel for the column displays.
  4. Type the alignment for the data in the column (LEFT, CENTER, RIGHT, or DEFAULT). For this example, type CENTER.

    Figure 88. The Alignment panel

    +--------------------------------------------------------------------------------+
    |+--------------------------------------------------------------+                |
    ||                          Alignment                           |                |
    ||                                                              |                |
    || Column Number :     2                                        |                |
    || Column Heading:   DEPT._NUMBER                               |                |
    ||                                                              |                |
    || Heading Alignment ( DEFAULT  )                               |                |
    || Data Alignment    ( CENTER   )                               |                |
    |+--------------------------------------------------------------+                |
    || F1=Help  F5=Previous Column  F6=Next Column  F12=Cancel      |                |
    |+--------------------------------------------------------------+                |
    +--------------------------------------------------------------------------------+
  5. Press Enter. You have finished changing the alignment of the column.
  6. Press the Cancel function key to close the Specify panel.
  7. Press the Report function key to display the changed report.

    Figure 89. The changed report shows the centered column.

    +--------------------------------------------------------------------------------+
    | REPORT                                           LINE 1      POS 1      79     |
    |                                                                                |
    |                                                                                |
    |                                                                                |
    |   DEPT.              EMPLOYEE                                 TOTAL            |
    |   NUMBER    JOB        NAME           SALARY  COMMISSIONS    EARNINGS          |
    |   ------    -----    ---------  ------------  -----------    ------------      |
    |     15      CLERK    KERMISCH       12258.50       110.10    12368.60          |
    |     15      CLERK    NGAN           12508.20       206.60    12714.80          |
    |     15      SALES    ROTHMAN        16502.83      1152.00    17654.83          |
    |     20      CLERK    JAMES          13504.60       128.20    13632.80          |
    |     20      SALES    PERNAL         18171.25       612.45    18783.70          |
    |     20      CLERK    SNEIDER        14252.75       126.50    14379.25          |
    |     38      CLERK    ABRAHAMS       12009.75       236.50    12246.25          |
    |     38      CLERK    NAUGHTON       12954.75       180.00    13134.75          |
    |     38      SALES    O'BRIEN        18006.00       846.55    18852.55          |
    |     38      SALES    QUIGLEY        16808.30       650.25    17458.55          |
    +--------------------------------------------------------------------------------+


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]