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




Today I discovered Array Data Structures and it seemed a perfect fit for the current SQLRPGLE program. Code looks great, Verifier in RDP likes everything.
Then when I get to compiling, I get the error RNF0571 The second parameter for %LOOKUPxx is not valid.
This is the line of code (in free- format)

ndx = %lookup(t1.arenty :regtaxdata(*).Entity : 1 : 50);

From all I can see under %lookup in the help text / manual, the line is defined properly and it passes the verifier.

Is there some restriction on using %lookup or data structure arrays in an SQL RPGLE program?
Or is there something else I am missing?

Data Structure Array definition is here

* define data structures (only used for definitions)
d TaxInfoCalc ds qualified
d Entity like(t1.arenty)
d EntityName like(Dentyname)
d EntityPhone like(Dentyphon)
d EntityPhnExt like(DentyExt)
d TaxAmtPd 11s 2

d RegTaxData ds likeds(taxinfoCalc)
d inz
d dim(50)


HTH,
TIA,
Thanks,
Whichever applies

Dave B

Sometimes I get the feeling the whole world is against me, but deep down I know that's not true. Some of the smaller countries are neutral. -- Robert Orben (comedy writer)


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.