Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What does 'Y2T' actully mean ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
JayC

New User


Joined: 27 Sep 2008
Posts: 70

PostPosted: Thu Nov 20, 2008 2:23 pm    Post subject: What does 'Y2T' actully mean ?
Reply with quote

Can someone tell me what the 'Y2T' really means as far as date processing in Sort is concerned ?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Thu Nov 20, 2008 2:36 pm    Post subject: Reply to: What does 'Y2T' actully mean ?
Reply with quote

if You had cared to search the forums with the simple word "y2t"
You would have found some explanation, or better the pointer to the manuals

to save some of Your time her is a pointer to the root of all knowledge
http://www-03.ibm.com/systems/z/os/zos/bkserv/index.html#other_pubs
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Nov 20, 2008 2:38 pm    Post subject:
Reply with quote

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
View user's profile Send private message
JayC

New User


Joined: 27 Sep 2008
Posts: 70

PostPosted: Thu Nov 20, 2008 2:57 pm    Post subject: Re: Reply to: What does 'Y2T' actully mean ?
Reply with quote

enrico-sorichetti wrote:
if You had cared to search the forums with the simple word "y2t"
You would have found some explanation, or better the pointer to the manuals

to save some of Your time her is a pointer to the root of all knowledge
http://www-03.ibm.com/systems/z/os/zos/bkserv/index.html#other_pubs


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. icon_smile.gif

Thanks sambhaji, your post was helpful.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Nov 20, 2008 3:15 pm    Post subject:
Reply with quote

Quote:
Thanks sambhaji, your post was helpful.

You are welcome.. icon_smile.gif

Quote:
Frankly I did search the Forums

I doubt it.
Here are couple of threads on it from many which has explanation, link to manual and example solution by Frank.
http://ibmmainframes.com/viewtopic.php?t=35944&highlight=y2t
http://ibmmainframes.com/viewtopic.php?t=35250&highlight=y2x
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us