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