Let me start over... To an extent, I understand what you are saying. But what I really need (to avoid re-basing) is a conditional USING (regardless of a single DSECT or two DSECTs). In other words, how to get the assembler to use only one of the following two USING statements? (Because I don't want to tie up another register.)
USING TXTSINPT,R10 <== for scripting mode USING TXTINPT, R10 <== for legacy mode >From what you're suggesting, I'm guessing the concept of a dependent USING would look like the following: USING TXTSINPT,R10 <== for scripting mode USING TXTINPT,TXTSINPT+2 <== for legacy mode However, both USINGs cannot be active in the same run, because the actual address in R10 has to always refer to the beginning of the TXTINPT legacy input string parameter. Even in scripting mode, the legacy code for the existing functions still need to use A000 and A002 displacements. Sincerely, Dave Clark -- int.ext: 91078 direct: (937) 531-6378 home: (937) 751-3300 Winsupply Group Services 3110 Kettering Boulevard Dayton, Ohio 45439 USA (937) 294-5331 On Tue, Feb 17, 2026 at 11:48 AM Jon Perryman <[email protected]> wrote: > On Tue, 17 Feb 2026 09:12:33 -0500, David Clark <[email protected]> > wrote: > > >I was thinking that there should be a way such as > >specifying two USINGs to accomplish what I want (rather than physically > >re-basing by +2). > > As I said before, use 2 dsects. Review "dependent using" if you are > unclear on using the technique. > > PUSH USING > USING DS2,DS1FLD > USING DS2,DS1+2 > POP USING >
