On Sun, 3 Mar 2019 at 19:15, Charles Mills <[email protected]> wrote:

> You can't do in conditional assembler what you could do in Rexx, right? In
> Rexx, given "input" of ABCD you could set ABCD.IsDefined to TRUE and
> subsequently check it. You can't do that in conditional assembler, can you?
> Given an input parameter of ABCD, essentially define a LCLB named &XCODE?

You *can* do something similar in conditional assembler. They're
called created SET symbols, and the syntax is roughly
&(&xxx)  SETB 1
where &xxx can be an expression just as well as a single variable
symbol. They can appear anywhere an ordinary SET symbol can, e.g. in
GBLx, SETx, and all the various references. One big difference from
REXX is that the resulting created symbols have to be syntactically
valid, i.e.start with an "&", then an alpha (including $, #, @, _),
and contain only the usual alphanumerics in the rest.

> All conditional symbol names have to be hard-coded in the source code, right?

No.

Tony H.

Reply via email to