Example 1
DISPLAY FROM(SOURCE) LIST(FIELDS) ON(NUM) ON(40,12,CH) -
ON(20,8,PD)
Prints, in the FIELDS data set:
- A heading line containing the standard headings
- Data lines in the standard format containing:
- The record number in the standard format
- The characters from positions 40-51 of the SOURCE data set
- The packed decimal values from positions 20-27 of the SOURCE data set in the standard format
The FIELDS output starts on a new page and looks as follows (the first 2 records are shown with illustrative values):
RECORD NUMBER (40,12,CH) (20,8,PD)
000000000000001 SAN JOSE 000000000003745
000000000000002 MORGAN HILL 000000000016502
. . .
. . .
. . .
The heading line appears at the top of each page.