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



For the record, Mark is the one that gave me this idea. I don't want to lay claim to an idea that wasn't mine.

Thanks John, I'll consider that in naming if it seems necessary.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Voris, John
Sent: Thursday, November 10, 2011 2:19 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: %lookup on a Data Structure Array

If the customer isn't there, then go to the file and get the value I
need plus add the customer/value to the array.

Generally the "Load as you go" method has always been known to me as HI-SPEED arrays.
Using HI in the array name helps identify the special use of these arrays.



I am aware of a potential performance hit of loading the array all at
once.
if you are using an array, and sorting it, is to be sure there is no
"K" on the F-Spec for the file.

This suggestion sounds like the FROMFILE keyword for arrays (load entire Pre-Run Array from File, using I-specs to select non-contiguous fields)
http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/topic/rzasd/sc09
2508546.htm#idx1518
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.


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.