|
I tend to use the C/MI runtime library functions when dealing with large pieces of data and I like to store the data in a user space to avoid eating up true memory (although it may not make much difference today). Data Structure Arrays are a different animal. They aren't really fully implemented as arrays, they are just alternative syntax so that you can access the occurrences in the DS easier. SORTA, LOOKUP, %SUBARR() etc. do not work with DS arrays. -Bob -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Tony Carolla Sent: Friday, February 18, 2005 11:53 AM To: RPG programming on the AS400 / iSeries Subject: Re: Pointer suggestion <snip> > Arrays have a similar limitation in the number of elements as fields do in > the number of bytes. > It is currently 32k (fields are 64k as Scott mentioned). But those 32k > elements may be up to 64k in length. <snip> When you say the elements can be 64k, is this the max size for the entire element? What about a DS array. Can each field in the DS be up to 64k, or must the total size of the entire DS be 64k or less? I doubt that any array element of mine will have a problem with the 64k size limit, probably the 32k element count, but this is good to know. -- "Enter any 11-digit prime number to continue..." -- 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.