COLHDG (Column Heading) Keyword for Physical and Logical Files--Example

Figure 24 shows how to specify the COLHDG keyword for a physical file.

Figure 24. Specifying the COLHDG Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00150A            ORDDAT         5  0       COLHDG('Order' 'Date')
00160A            NAME          20          COLHDG('Customer''s Name')
00170A            CITY          20          COLHDG('Customer' 'City' 'Field')
     A

Decimal positions or data type must be specified for ORDDAT since Order Date is a numeric field (denoted by NNNNN below).

The following display illustrates how the column headings can appear when running text management, query, DFU, or SDA.

+--------------------------------------------------------------------------------+
|Customer                                                                        |
|Order                                 City                                      |
|Date       Customer's Name            Field                                     |
|NNNNN      XXXXXXXXXXXXXXXXXXXX       XXXXXXXXXXXXXXXXXXXX                      |
+--------------------------------------------------------------------------------+