z/OS DFSORT Application Programming Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example 6

z/OS DFSORT Application Programming Guide
SC23-6878-00

  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'

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014