On 2020-09-10, at 18:14:16, Charles Mills wrote:
> 
> Sometimes one uses the same COPY member or macro in a CSECT in one place and 
> a DSECT everywhere else. Yeah, you can use SET symbols make it vary between 
> the two environments but that is a tad ugly.
>  
That's needed only if the CSECT and the DSECT must be referenced
in the same program and works only for a programmer who controls
the macro code and can prefix every label.

An alternative is to rely on labeled USINGs to distinguish
references to the DSECT from labels to the CSECT.  Usually
the program needs only the length of the area in order to
obtain storage mapped by the DSECT.

-- gil

Reply via email to