Example 6
MERGE FIELDS=(28,4,BI,A)
OUTREC BUILD=(1,4,5Z,5X,5,3,28,8,6Z,DATE3-1)
This example illustrates how input files can be merged and reformatted for output, with yesterday's date included. The variable part of the input records is not to be included in the output records. The SORTINnn LRECL is 50 bytes.
The reformatted output records are variable-length with a maximum
record size of 38 bytes. The reformatted records
look as follows:
- Position
- Contents
- 1-4
- RDW (input positions 1 through 4)
- 5-9
- Binary zeros
- 10-14
- EBCDIC blanks
- 15-17
- Input positions 5 through 7
- 18-25
- Input positions 28 through 35
- 26-31
- Binary zeros
- 32-38
- Yesterday's date in the form C'yyyyddd'