On 2025-01-03 2:20 p.m., VERNON HAMBERG Owner via MIDRANGE-L wrote:
Of course, this change to 1970 as the base date means that any date with 2 digit year that was between 1940 and 1969 is now magically a century later.
The change for the base date doesn't affect everything.
It says
"Note: This environment variable update only effects commands with a
parameter of TYPE(*DATE). Existing RPG or COBOL programs as well as Db2
are not effected by this update. Dates need to be converted to a
4-digit-year value."
It's not just existing RPG programs. RPG will keep 1940 as the base year
for 2-digit dates.
See this recent RPG compiler enhancement where you can get a
compile-time warning or error if you are using a 2-digit-year date format.
RPG Cafe: Fall 2024: Find where you use 2-digit years, to avoid the
"2039 problem"
https://www.ibm.com/support/pages/node/7172105
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.