Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Converting date fields z/OS DFSORT: Getting Started SC23-6880-00 |
|
Suppose you had input records that looked like this:
The first field is a gregorian date in 'mmddccyy' form, but you'd
actually like to reformat it into a julian date in 'ccyy/ddd' form.
You can use the following statements to convert the date field to
the form you want:
The results produced for this OUTREC statement are:
Y4W and Y4T are two of DFSORT's 4-digit year date field formats.
Y4W indicates a date value with the year (ccyy) last such as 'mmddccyy'
or 'dddccyy' whereas Y4T indicates a date value with the year first
such as 'ccyymmdd' or 'ccyyddd'. TOJUL is one of the conversion keywords
that can be used with date fields. You can use any of the following
after p,m,Y4x or p,m,Y2x to convert a CH, ZD or PD 4-digit or 2-digit
year date in one form to a corresponding CH, ZD or PD 4-digit or 2-digit
year date in another form or to a corresponding day of the week:
For complete details on converting from one type of date field to another, see z/OS DFSORT Application Programming Guide. |
Copyright IBM Corporation 1990, 2014
|