Got it. I knew that USING was for the assembler, only, and that once the machine code is generated it is cast in stone--as it were. So, I really am stuck with re-basing because it works as intended.
If I wanted to duplicate all the code, then I could use either an alternate entry point and a second DSECT that was only used by the new code. But I don't want two functions for FIND, two functions for DELETE, two functions for INSERT, etc. repeated for 16 functions. Sincerely, Dave Clark On Tue, Feb 17, 2026 at 1:45 PM Tony Harminc <[email protected]> wrote: > On Tue, 17 Feb 2026 at 12:25, David Clark <[email protected]> wrote: > > > 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 > > > > I think you're asking for the impossible. You seem to want to have > something that is determined at assembly time depend on something that is > known only at run time. You can't go back in time to change what the > assembler did last week based on what data your caller supplies today. > > Tony H. >
