|
SCarter wrote: >I searched the archives and the FAQ for information on using pointers to >linked lists >and I did not find anything useful to ME... >that having been said can some one give me an example of using pointers for >linked lists >I have the classic list problem I know what type of data I need but i don't >know how much. >I could write the data out to a file in QTEMP and just process the file but >I did not want to do >that unless I can't wrap my brain around this pointer thing in a reasonable >amount of time. > >I want to be able to store this information in a list and then reprocess >the list how would I >do this with pointers... >D LDADS DS >D CusKeyErr 14 28 >D RefErr 29 38 >D MsgCode 39 45 >D ErrElmAry 46 93 >D ErrMsgAry 94 261 And what's wrong with using a file to manage this type of information? The style of data you're dealing with looks and smells exactly like a table in a database. Using linked lists or dynamically allocated multiple occurrence data structures can be done (as others have described), but not as easily or as clearly as using a file. Why complicate matters needlessly for yourself? Hans Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com
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.