View previous topic :: View next topic
|
Author |
Message |
JayC
New User
Joined: 27 Sep 2008 Posts: 70
|
|
|
|
Can someone tell me what the 'Y2T' really means as far as date processing in Sort is concerned ? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
DFSORT application programming guide says this:
Quote: |
Date Comparisons
You can use DFSORT’s Y2 formats in conjunction with the century window in
effect, as follows:
118 z/OS V1R8.0 DFSORT Application Programming Guide
v Use the full date formats (Y2T, Y2U, Y2V, Y2W, Y2X and Y2Y) to compare a
two-digit year date field to a two-digit year date constant, a current, future or
past two-digit year date (Y constant), or to another two-digit year date field.
v Use the year formats (Y2C, Y2Z, Y2S, Y2P, Y2D and Y2B) to compare a two-digit
year field to a two-digit year constant (Y constant) or to another two-digit year
field.
For example, you can include only those records for which a Z’yymm’ date field is
between January 1996 and March 2005. Or you can include only those records for
which a P’dddyy’ field is less than another P’dddyy’ field. Or you can include only
those records for which a C’yyddd’ field is between today’s date and 5 days earlier
than today’s date.
|
|
|
Back to top |
|
|
JayC
New User
Joined: 27 Sep 2008 Posts: 70
|
|
|
|
Hi Enrico,
Frankly I did search the Forums and I went and googled it too and I saw all the fancy sites and the big explanations. ..
I just wanted to get simpler explaination in layman's terms on the topic-thats all.
Thanks for the link anyway.
Thanks sambhaji, your post was helpful. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
Back to top |
|
|
|