update XRCREC ; // never happens, insures fields are 'brought-in'
<snip>
Here's my take...
dcl-ds rcdXRCL likerec(<your rcd format> : *all);
dcl-s ptrXRLA pointer inz(%addr(rcdXRCL));
dcl-ds dsXRLA based(ptrXRLA);
arXRLA char(8) dim(3);
end-ds;
chain 039356 XRCL01 rcdXRCL;
Read the record into the DS. After the chain, arXRLA(<index>) is the
array representation of your file "buckets".
Roger Harman
</snip>
“No matter where you go, there you are...”.
<br />
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful.
As an Amazon Associate we earn from qualifying purchases.
This thread ...
Re: Auto load an array when reading a record., (continued)
This mailing list archive is Copyright 1997-2025 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.