A date field knows what it is. There is no need to tell it. All you can tell it is how you wish it to show a date to you.

On 9/29/2015 11:26 AM, Justin Taylor wrote:
I have a DDS PF that contains a date field defined:
A DFT('0001-01-01')

RPGLE, DSPPFM and QRY/400 are all fine with that and show the field correctly. SQL chokes on it however. It returns a null value and a 01534 SQLSTATE (The string representation of a datetime value is invalid).

Any ideas? Is it the DFT keyword?

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 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].