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



I am total agreement with you, Booth.  IIRC, array processing is one of the
most inefficient things that you can do in an RPG program.

I don't see a reason to use such a large array in a program.  I typically
use a user index or create a work file in QTEMP with the necessary PF keys
and/or LGL files to process the data when the number of elements gets very
large.  It may take a little more code, but using one of these techniques is
much more efficient than using a large array.  Plus, using a work file is
definitely dynamic, since you can specify SIZE(*NOMAX) when creating the
file.


----- Original Message -----
From: "Booth Martin" <Booth@MartinVT.com>
To: <rpg400-l@midrange.com>
Sent: Wednesday, October 16, 2002 9:39 AM
Subject: RE: Dynamic Arrays




I am asking myself the purpose of this redimensioning.  What does it do for
the programmer or the user that isn't done better and faster by using the
database?  A 20,000+ element array is getting pretty large and unwieldly.

The fact that Visual Basic redimensions arrays only points out the
shortcomings of being forced to do everything in volatile memory because the
Microsoft Operating System is so disjointed and unpredictable.  I find the
whole idea to be a weakness of Visual Basic and a strength of OS/400.

I am sure the error of my thinking will be pointed out, but please do so
courteously as I have a fragile ego this morning.

---------------------------------------------------------
Booth Martin   http://www.MartinVT.com
Booth@MartinVT.com
---------------------------------------------------------

-------Original Message-------

From: rpg400-l@midrange.com
Date: Wednesday, October 16, 2002 10:13:31 AM
To: rpg400-l@midrange.com
Subject: RE: Dynamic Arrays

Exactly, I am asking same thing...I am not able to understand why this can
not be done in RPGLE..

-----Original Message-----
From: meovino@estes-express.com [mailto:meovino@estes-express.com]
Sent: Wednesday, October 16, 2002 7:04 PM
To: rpg400-l@midrange.com
Subject: RE: Dynamic Arrays



Himanshu,

Are you asking for something like REDIM in Visual Basic, where you can
redimension an array on the fly (and preserve the existing array elements
if you want to)? The RPG gurus in my shop say it can't be done, but I'm
hoping someone here can prove them wrong.

Mike E.
_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
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 ...

Follow-Ups:
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.