|
I don't think you can set the size of the DIM at run time. However, you could put a number that is big enough for furture grow. If memory is a big concern, which I don't think it should be for a program that will only may be run once a day, you could put a base pointer on it. But this will require more coding to handle it as dynamic array. You can use %lookupGE and compare the elem return from the lookupGE with the search argument. Note that SORTA doesn't work well for dynamic array. -----Original Message----- From: CarollaT@xxxxxxxxxxxxxx [mailto:CarollaT@xxxxxxxxxxxxxx] First of all, can I somehow DIM the data structure array based on the number of records in the company file? This way, if we add companies, I won't have to modify and re-compile. Also, I won't have to make a guess-timate of around 150, and dimension unneeded elements. Then, if the array elements contain a 3-alpha and a 11,2-packed field, can I use the %Lookup BIF to lookup the 3-alpha identifier for each company as I am summarizing? Will the other data structure field interfere with this? Tony Carolla MedAmerica Billing Services, Inc. _______________________________________________ This is the RPG programming on the AS400 / iSeries (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 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.