In general, for allocating actual space, all you need is the alignment and total length. You can use some form of USING the DSECT to address as many as you like, and you keep the macro simple.
sas On Thu, Jun 19, 2025 at 3:12 PM Paul Gilmartin < 00000014e0e4a59b-dmarc-requ...@listserv.uga.edu> wrote: > On 6/19/25 11:20, Mark Hammack wrote: > > I just read Ed Jaffe's presentation from Share where he mentioned that > they > > have some macros that not only generate a DSECT but using the same macro, > > generate data in the program. I can find (and have a few) examples of > > doing that when the data occurs once in a program but am drawing a blank > on > > a good way to do that for multiple occurrences of the macro. > > ... > 1) define labels only on zero-storage instructions (L DS 0F) > and bypass them with AIF in the CSECT case. > Or: > 2) Use the upper-bound operand to limit the addressability > of code and a different USING naming the CSEECT to > address the DSECT/ > > -- > gil >