|
Thanks Bob,
Let me rephrase your answer.
Are you trying to simulate a VARYING field? Looks like it to me.
D TextDS DS BASED(textPtr) D TextLen 5I 0 D TextData 32766A
If you use BASED, no storage is allocated for TEXTDS, so it does not matter if you declare TEXTDATA as a 32K variable. That way SUBST and other operation will work the way you want.
If you want to NOT use this suggestion, and you simply want to copy from that memory location, use this:
Eval memcpy(%addr(target) : textPtr + 2: some-length-here )
But why not just use a VARYING field?
Dave Murvin DRM Enterprises, Inc.
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.