After reading the various message that you have received on this subject, I
have not seen one that mentions the use of dynamic memory allocation(ALLOC
op code) to allocate the size of the array, nor using the C modules "qsort"
and "bsearch".

Jon Paris provided coding examples for both of these in his Session 22DC
Common Lab.

I have a copy of the lab notes...sorry, only on paper.  If are interested,
email me offline.


-----Original Message-----
From: Richard Reeve []
Sent: December 01, 2001 08:20 AM
Subject: array handling


     I am having a problem with an array in RPG
(caused mainly by my ignorance where RPG is concerned
since I am a COBOL kind of guy!).  What I am trying to
do is to read a file and load an array that will have
2 elements - a legacy hold code (2 positions) and a
MHS hold code (2 positions).  I then want to do a
lookup on this array by MHS hold code and find the
corresponding legacy hold code (later in the program).

     Could someone be kind enough to coach me through
this?  I will be forever greatful.



Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email:
To subscribe, unsubscribe, or change list options,
or email:
Before posting, please take a moment to review the archives

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by 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.