ILE COBOL Programmer's Guide
To take your programs through the year 9999, you must eventually:
- Change applications to retrieve a 4-digit year instead of a 2-digit year,
using one of the following methods:
- Using the new YYYYMMDD and YYYYDDD phrases of the ACCEPT statement to
obtain a 4-digit year or
- Using Intrinsic Functions to get 4-digit year date (such as CURRENT-DATE,
DATE-OF-INTEGER and DAY-OF-INTEGER) or
- Using Integrated Language Environment callable services to get 4-digit
year dates
- Increase the size of the data items that contain dates so that they can
store a 4-digit year, or change the data items into date data items that hold
a 4-digit year.
- Rebuild databases with 4-digit years.
However, there is a short-term solution that is easier.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.