|
On 20-Apr-2017 06:19 -0500, Paul Bailey wrote:
The cursor is created by the ALLOCATE in the RPGLE (instead of anMaybe I've missed and this has already been covered in the thread,
OPEN) and then closed by the RPGLE after use. I think my initial
worries that RPGLE was part of the problem were incorrect and the
issue is actually with the FINAL TABLE implementation in "DB2 for
i". RPGLE handles result sets from stored procedures using SELECT
statements with the same ALLOCATE routine fine, and the stored
procedure I was using for the INSERT also failed with the same
problem when called through a JDBC connection.
but the CPF5035 is caused by a mis-match in data types. The most
common cause I've seen for this is not declaring a numeric as a
signed-numeric field--whether or not the data can actually be
signed, you must declare it as signed. The second-level text on the
error will tell you the field name and give an error code which
should clarify what is actually wrong.
This may have been covered before, but does the INSERT actually
happen or is the error before that? Knowing this could help narrow
it down, too.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.