× 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.


  • Subject: SQL fetch
  • From: rbbaird@xxxxxxxxxxx (Rick Baird)
  • Date: Tue, 29 Jul 1997 22:00:19 -0700

Hey, all.

I have a question about imbedded sql (rpgle) and date data types.

I use RPG to populate a database field with a date in *iso format
(yyyy-mm-dd), and INSERT into a file via imbedded sql.  But when I try
to FETCH the data, I get an invalid date error.

The date is correct in the file, but the dump says that the sql_000xx
field that sql is trying to move into the field is in mm/dd/yy format.

What gives?  Any ideas?   Do I need to specify some job/session level
date format?

Thanks in advance.

Rick



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the Midrange System Mailing List!  To submit a new message,   *
* send your mail to "MIDRANGE-L@midrange.com".  To unsubscribe from     *
* this list send email to MAJORDOMO@midrange.com and specify            *
* 'unsubscribe MIDRANGE-L' in the body of your message.  Questions      *
* should be directed to the list owner / operator: david@midrange.com   *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.