When I try to send my PF from iSeries to the PC, I get SQL0181 error because the dates in the file (with data type L) are not between 01/01/1940 and 12/31/2039. The error msg says that dates are valid between 01/01/0001 and 12/31/9999, but I have narrowed the error down to those dates that fall outside of the range of 01/01/1940 thru 12/31/2039. How can I get my 0001 and 9999 years to transfer successfully??
Software/Hardware used:
ASKED:
March 12, 2007 2:55 PM
UPDATED:
January 6, 2010 4:15 PM
Perhaps this SQL routine I use to fix bad dates would help?
The dates in our legacy system are all CC YY MM DD. I use it to set all invalid dates to 1/1/1950.
You can easily adapt.
FYI: I’m not the original author. Lost the proper attribution.
Gary