Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Example 8 z/OS DFSORT Application Programming Guide SC23-6878-00 |
|
This example illustrates how to transform an existing data set with a packed decimal date field of the form P'yymmdd' (X'0yymmddC') in bytes 20-23 into a new data set with a character date field of the form C'mm/dd/yyyy' in bytes 20-29. yy represents the two-digit year, yyyy represents the four-digit year, mm represents the month, dd represents the day, and C represents a positive sign. The input data set has an LRECL of 80 and the Y4 data set will have an LRECL of 86. The Y2PAST=26 option sets the century window to be used to transform
two-digit years into four-digit years. If the current year is 2006,
the century window will be 1980 to 2079. Using this century window,
the input and output fields might be as follows:
|
Copyright IBM Corporation 1990, 2014
|