My experience with macro assembler is some ten years ago,
but: finding the number of parameters in the list and indexing across the
list is IMHO only possible for positional parameters, but here we have
keyword parameters.
positional:
LABEL MACNAME A,B,C
keyword:
LABEL MACNAME P1=A,P2=B,P3=C
with positional, the sequence of the parameters is important,
with keywords it isn't.
You could rewrite the macro like the following:
LABEL MACNAME P=(X,Y,Z,...),Q=(A,B,C,...)
having the sublists of P growing up to 24 elements, then counting and
indexing
the sublists. But this would be a major rewrite of your existing macro.
Don't know if I understood your problem right.
Maybe it would also help to ask the ASSEMBLER mailing list.
Kind regards
Bernd
Am 01.04.2012 08:28, schrieb Ken Brick:
Chuck,
From the deep dark mists you can:
a. find out the number of parameters in the list
b: index across the list
Refer to the fine manual,
Help this helps.
Ken
On 1/04/2012 10:04 AM, Hardee, Chuck wrote:
Hello Listers,
I am in the process of doing some work in a macro written years ago.
The problem I am faced with is that the parameter list is something
like the following:
LABEL MACNAME P1=X,P2=Y,P3=Z,... Where the parameters can go out
to p24.
And, unfortunately, there are 4 sets of parameters of this nature,
not to mention a few "unique" parameters on the list (not suffixed
with a number).
My question is, does the macro assembly language allow for compound
variable names?
So far, everything I have tried has met with resistance from the
assembler.
Thanks,
Chuck
Charles (Chuck) Hardee
Senior Systems Engineer
Database Administration
Information Technology Services
Thermo Fisher Scientific
Chuck.hardee.at.thermofisher.dot.com
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN