|
Along with having RPG date/time formats match SQL...
Make sure you don't have CVTOPT(*DATETIME) in effect.
Also note that IIRC correctly, while you can use quailified DS's at v5r4,
but you have to make sure that the subfield's unqualified names are unique
or at least if the name isn't unique the field types and sizes are the same
across all definitions.
HTH,
Charles
On Thu, Nov 8, 2012 at 1:22 PM, CRPence <CRPbottle@xxxxxxxxx> wrote:
On 08 Nov 2012 11:40, Michael Ryan wrote:list
Still receiving the same error.
i.e. sql5011 on Fetch C1 For :Maxrows Rows Into :Wkinvmstp;
I seem to recall that if DATE [maybe TIME?] data type are involved,
then the RPG DATFMT and the SQL SET OPTION statement must effect
consistent settings for the Date Format betwixt.
FWiW: I seem to recall that neither the initial thread nor this one
had included both the RPG source and SQL DDL; only a couple very limited
snippets. I am sure I recall similar issues that have been discussed on
the RPG400 list; I think that was where I learned of some nuances with
DATE data typee. Also, this issue seems very likely to be specific to
the RPG, since the "host variables" are variables in the "host"
language... and so any issues would generally relate to the declarations
in that host language and the SQL pre-compiler's attempt to process the
SQL in relation to those HLL declarations.
--
Regards, Chuck
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
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.