I am using RPGIV. A working example would be much appreciated. --- David & Eileen Keck <firstname.lastname@example.org> wrote: > Do you want to use RPG/400 (OPM) or RPGIV (ILE)? > Also, its not clear if you > need structural guidance or a working example. > Since RPG* only supports > one dimensional arrays you will need two arrays. > They will be "run time" > arrays. You use the RPG/400 op code LOKUP, or RPGIV > op code LOOKUP (or BIF > %LookUpxx) to search for an element in one array, > thereby receiving the > index to the corresponding array. -Dave K. > > ----- Original Message ----- > From: "Richard Reeve" <email@example.com> > To: <firstname.lastname@example.org> > Sent: Saturday, December 01, 2001 9:19 AM > Subject: array handling > > > > All, > > > > 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. > > > > Rich > > > > ===== > > > > > > __________________________________________________ > > Do You Yahoo!? > > Buy the perfect holiday gifts at Yahoo! Shopping. > > http://shopping.yahoo.com > > _______________________________________________ > > This is the Midrange Systems Technical Discussion > (MIDRANGE-L) mailing > list > > To post a message email: MIDRANGE-L@midrange.com > > To subscribe, unsubscribe, or change list options, > > visit: > http://lists.midrange.com/cgi-bin/listinfo/midrange-l > > or email: MIDRANGE-Lemail@example.com > > Before posting, please take a moment to review the > archives > > at http://archive.midrange.com/midrange-l. > > > > _______________________________________________ > This is the Midrange Systems Technical Discussion > (MIDRANGE-L) mailing list > To post a message email: MIDRANGE-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: > http://lists.midrange.com/cgi-bin/listinfo/midrange-l > or email: MIDRANGE-Lfirstname.lastname@example.org > Before posting, please take a moment to review the > archives > at http://archive.midrange.com/midrange-l. > ===== __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.