× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This is just a quick recap and closure for this issue for the archives:

To prevent getting SQLSTT = '22008', Date or timestamp invalid errors
for dates in the database less then 1940-01-01, I had to change the
DATFMT option of the CRTSQLRPGI command to *ISO.  Otherwise it reads the
SYSVAL for DATFMT which is MDY (and doesn't even have an ISO option).

This could be accomplished three ways:

1.  Prompt the command every time and change it.  - Unacceptable, my
memory isn't that good.

2.  Change the command default.  - Not bad but I have to manage those
changes across different boxes and reinstate them when versions change.

3.  Add an SQL "Set option" block to the source code.  -  Great!  Like
an H-Spec, since it is in the code it should always be set at runtime.

I took this a step further and put the Set Option block in a /copy book
so that I can use it again and again with a single entry point for
future changes. - Thanks Rob for confirming this for me.

Thanks to all who responded.

Joel
http://www.rpgnext.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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.