|
Define your fields (FLD01, FLD02 ... FLD12) in a data structure, then set your pointer to the beginning of the DS. Duane > -----Original Message----- > From: Fisher, Don [SMTP:Dfisher@roomstoreeast.com] > Sent: Thursday, September 26, 2002 12:18 PM > To: 'rpg400-l@midrange.com' > Subject: Pointer based arrays > > I am using a file in a package system that contains contiguous fields > FLD01, > FLD02...FLD12. I have defined a 12 occurrence array based on a pointer. > While executing the program I set the pointer address to FLD01. I > expected > this would make the FLD** values appear in the array. > > Sadly, only the FLD01 value appears in the array. I know I've done this > before, but can't think what I'm missing. > > This particular system in on V4R5. > > Thanks. > > Donald R. Fisher, III > Project Manager > The Roomstore Furniture Company > (804) 784-7600 extension 2124 > DFisher@roomstoreeast.com > > _______________________________________________ > 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 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.