On 2017-04-18 9:45 AM, Gerald Magnuson wrote:
I have a 2d array, which contains a search key and option id:
d SearchArr ds Dim(5000) qualified
d $SearchStrg 16a overlay(SearchArr)
d $cust_id 9b 0 overlay(SearchArr:*NEXT)
...
foundElem = %lookupGE('A':SearchArr(*).$SearchStrg);

and the compiler tells me "$SearchStrg is not an array"


It's actually telling you that $SearchStrg is not a _sequenced_ array.

As Jon said, RPG doesn't have any syntax to say that the subfields
of a data structure array will be ascending or descending. I thought I recalled someone opening an RFE to support that, but I don't see it.

https://www.ibm.com/developerworks/community/forums/html/topic?id=e6757e66-7ef0-4321-912c-1362a2d898fb&ps=25


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