|
"Fisher, Don" wrote: > > 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. > Don, even though the fields are contigous in the file, they aren't necessarily contiguous in the program storage. But you can force them to be contiguous by coding an externally-described data structure. You just need to add one line to your program: D E DS EXTNAME(myfile)
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.