|
Overlay should work, but I prefer using pointers, and have used them in several cases, as follows, using Tim's example with liberal "embellishment" <g>. The caution is, either the pointer or the overlay method will only work if the fields are safely contiguous. File CLRCKSFM, record CLRCKS04, first check number field CKNB01. D InPut04 E DS ExtName(CLRCKSFM:CLRCKS04) Inz D chknbrptr S * Inz( %addr( CKNB01 )) D chknbr S 6S 0 Dim(48) D Based( chknbrptr ) Don't know about the latest VnRn, but this pointer method works like a charm for *any* type of field, as long as the elements are contiguous: packed, integer, whatnot. -- Alan
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.