Define column headings
The COLHEAD process statement defines column headings and specifies the location and format of the corresponding data to be displayed. For an example of a listing with column headings, see Figure 2.
Note: COLHEAD is not available for side-by-side listings. (See “NARROW” process option).
Compare Type: LINE
- heading1
- The heading to appear on the first line for the print column.
- heading2
- The heading to appear on the second line for the print column.
- start_print_column
- The starting print column for the heading specified.
- end_print_column
- The ending print column for the heading specified. (Must be separated
from the start_print_column by a colon.) Note: If the print-column range is shorter than the heading specified, the heading is truncated.
- N
- Indicates the operands following relate to the new file.
- start_column
- The starting position in the new file of the data to be displayed.
- last_start_column
- The ending position in the new file of the data to be displayed. (Must be separated from the start_column by a colon.)
- Data Format Indicator
- The format of the data in the new file to be displayed:
- C
- Character
- B
- Binary
- D
- Unsigned packed decimal
- P
- Packed decimal
- Z
- Zoned decimal
- O
- Indicates the operands following relate to the old file.
- start_column
- The starting position in the old file of the data to be displayed.
- last_start_column
- The ending position in the old file of the data to be displayed. (Must be separated from the start_column by a colon.)
- Data Format Indicator
- The format of the data in the old file to be displayed (as for the new file).
Example | Description |
---|---|
|
Defines a print column with a heading of STARTin the first line and DATEin the second heading line, headings to start in print column 1. The data to be displayed from the new file is in positions 1 through 6 and is in packed format. The data to be displayed from the old file is in positions 11 through 16 and is in (the default) character format. |