I'm sorry:Given an input parameter of ABCD, essentially define a LCLB named
&ABCD?CharlesSent from a mobile; please excuse the brevity.
-------- Original message --------From: Charles Mills <[email protected]> Date:
3/3/19 4:15 PM (GMT-08:00) To: [email protected] Subject: Re:
Best practice using Conditional Assembly Not incredibly elegant but I don't
know how to do any better.You can't do in conditional assembler what you could
do in Rexx, right? InRexx, given "input" of ABCD you could set ABCD.IsDefined
to TRUE andsubsequently check it. You can't do that in conditional assembler,
can you?Given an input parameter of ABCD, essentially define a LCLB named
&XCODE?All conditional symbol names have to be hard-coded in the source
code,right?Here's a real easy solution. You may or may not think it elegant.
Have themacro generate&XCODE._Check EQU *that is, for example give
XCODE=ABCDABCD_Check EQU *and if it assembles in error, ABCD is a
duplicate.Charles-----Original Message-----From: IBM Mainframe Assembler List
[mailto:[email protected]]On Behalf Of MELVYN MALTZSent: Sunday,
March 3, 2019 3:43 PMTo: [email protected]: Re: Best
practice using Conditional AssemblyHi Paul,Others will give you codeDefine an
LCLC arrayKeep a count of entriesBefore inserting a new entry, scan the array
to see if &XCODE is already thereIf it is...it's a duplicateIf not, add it and
increment the count