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



How much data is in your array?
Is it character or Zoned Numeric?


Dcl-ds Filter_T Qualified Template;
Key Char(1);
Desc Char(25);
End-ds;
Dcl-Ds Filter Qualified;
*N Like(Filter_T) INZ('AAll ');
*N Like(Filter_T) INZ('BEmail Entries ');
*N Like(Filter_T) INZ('CFile Entries ');
*N Like(Filter_T) INZ('DSpool Entries ');
*N Like(Filter_T) INZ('EEmail and File Entries');
Dcl-ds All Likeds( Filter_T ) Pos(1) Dim(5);
End-Ds;

Dcl-s Vidx Int(10);

VIdx = %Lookup( FilterId: Filter.All(*).Key : 1 : %Elem(Filter.All) );
If VIdx <> 0;
FilterDescription = Filter.All(Vidx).Desc;
Endif;


Chris Hiebert
Senior Programmer/Analyst
Disclaimer: Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.


-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Booth Martin
Sent: Tuesday, March 3, 2020 12:18 PM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Brain flat: How does one do the equivalent of an old-timey compile-time alternating array?

Brain flat: How does one do the equivalent of an old-timey compile-time alternating array using current best-practices?


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.