×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.





To search an array with LOOKUP, you must tell it where to start in the array, e.g:
    0105.00C    AIAOTX        Lookup    ZipCodes(1)   County                  30

On Friday, March 26, 2021, 3:07:14 PM EDT, Gary Kuznitz <docfxit@xxxxxxxxxxxx> wrote:

I'm trying to create an alternating table.
The code I have is:
D ZipCodes        S              7    DIM(222) CTDATA
PERRCD(1) 
D County          S              1    DIM(222) ALT(ZipCodes)

CL0N01Factor1+++++++Opcode&ExtFactor2+++++++
Result++++++++Len++D+HiLoEq.
0105.00C    AIAOTX        Lookup    ZipCodes      County                 
30

*RNF5158 30        010500  Result-Field operand must
not be array name for specified 
                          operation.

The data I have is this:
92201  R
92202  R
92203  R
92210  R

What am I configuring wrong?  How can I get rid of the
error?

Thanks,

Gary Kuznitz

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.