|
I will try that and report the results next week.
Alan Shore <AlanShore@xxxxxxxx> wrote:
I'm curious, have you compiles the SQLRPGLE module with a target release of
*CURRENT on V5R3 and does it still get the same error?
Alan Shore
NBTY, Inc
(631) 244-2000 ext. 5019
AShore@xxxxxxxx
Brian Johnson
yahoo.com> To
Sent by: RPG400-L@xxxxxxxxxxxx
rpg400-l-bounces@ cc
midrange.com
Subject
SQLRPGLE module fails on large
08/04/2006 09:41 value in INTEGER column
AM
Please respond to
RPG programming
on the AS400 /
iSeries
e.com>
We have a failing SQLRPGLE module. It's getting overflow error (MCH1210)
when fetching a row that has an integer column whose value is >
999,999,999. Inspecting the compile listing I see that the SQL temporary
variable generated is defined a type BINARY, thus the overflow. The
database field is defined in an external DS:
H extbinint( *yes )
D LFOID 10I 0
but the SQL-generated field is BINARY:
D SQL_00051 6454 6457B 0
so the move generated by the FETCH fails:
c*exec sql fetch from log_item_list
c* into :LFOID:lf_null_ind
C EVAL LFOID = SQL_00051
This seems like a bug in SQL pre-compiler. It is generating code that
cannot handle the full range of values for database columns of type
INTEGER.
The module is compiled on V5R3 with target release V5R2. The production
code will be compiled on V5R2 with target release (*CURRENT).
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs.Try it free.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
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.