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



Could someone point me to the precompiler fixes that were made?
I'd like to know what I'm missing.

Was it fixed so a Declare would recognize local variables?

Kurt Anderson
Application Developer
Highsmith Inc

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Friday, August 04, 2006 9:24 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: SQLRPGLE module fails on large value in INTEGER column

I'm curious too.  Prior to V5R3 the precompiler was pretty dead.

Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
PO Box 2000
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





Alan Shore <AlanShore@xxxxxxxx> 
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
08/04/2006 09:57 AM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
cc

Subject
Re: SQLRPGLE module fails on large value in INTEGER column







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 
             <brian_p_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 
             <rpg400-l@midrang 
                  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 thread ...

Follow-Ups:

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.