|
I have a field in a file defined as a date data type, *ISO. I
display the date on the screen in *USA format. The problem comes when
trying to retrieve the record via a subfile built thru SQL. I get no
record due to the date being invalid because the date is 2099-12-01.
According to the RPG & DDS books, date in either USA or ISO formats
can go to 9999 in the year. If I change the date to 2039, the record
is retrieved perfectly.
Message ID . . . . . . : CPF5035 <<SNIP>>
Message . . . . : Data mapping error on member SMKCOMIT.
Cause . . . . . : A data mapping error occurred on field
SMKCOMIT_1.CEXPDT in record number 0, record format *FIRST,
member number 1, in member SMKCOMIT file SMKCOMIT in
library HOLLIB, because of error code 18. <<SNIP>>
18 -- There is data in a date, time, or timestamp field
that is not valid. <<SNIP>>
As defined in the display file:
A #2EXPDT L O 9115DATFMT(*USA)
As defined in the physical file:
A CEXPDT L TEXT('Expiration Date')
A DATFMT(*ISO)
What am I missing ? RTM links appreciated.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.