Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

X 1.7 Millennium Language Extensions and Date Fields




X Many applications use 2 digits rather than 4 digits to represent the year
X in date fields, and assume that these values represent years from 1900 to
X 1999. This compact date format works well for the 1900s, but it does not
X work for the year 2000 and beyond because these applications interpret
X "00" as 1900 rather than 2000, producing incorrect results.


X The millennium language extensions are designed to allow applications that
X use 2-digit years to continue performing correctly in the year 2000 and
X beyond, with minimal modification to existing code. This is achieved
X using a technique known as windowing, which removes the assumption that
X all 2-digit year fields represent years from 1900 to 1999. Instead,
X windowing enables 2-digit year fields to represent years within any
X 100-year range, known as a century window.


X For example, if a 2-digit year field contains the value 15, many
X applications would interpret the year as 1915. However, with a century
X window of 1960-2059, the year would be interpreted as 2015.


X The millennium language extensions provide support for the most common
X operations on date fields: comparisons, moving and storing, incrementing
X and decrementing. This support is limited to date fields of certain
X formats; for details, see "DATE FORMAT Clause" in topic 5.3.6.


X For information on supported operations and restrictions when using date
X fields, see "Restrictions On Using Date Fields" in topic 5.3.6.2.

Subtopics:



Previous Topic Next Topic © Copyright IBM Corp. 1991, 1998

IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.





Return to library:   z/OS | z/OS.e | TPF | z/VSE | z/VM | IBM Hardware | IBM System z Redbooks
Glossary:   IBM terminology
Publications:   How to order publications
Readers:   Download IBM Library Reader | Download IBM Softcopy Reader | Download Adobe® Acrobat® Reader®
Library management:   Download IBM Softcopy Librarian
Contacts:   Contact z/OS


Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.