IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What does 'Y2T' actully mean ?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Nov 20, 2008 2:36 pm
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
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
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
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
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
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.
ibmmainframes.com/viewtopic.php?t=35944&highlight=y2t
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Search our Forums:

Back to Top