I have simple Macro with three positional parameters:
SRVRCONN &C,&T,&G
The Macro generation is as follows:
.A020 ANOP
DC CL20'&C' .Name
DC AL4(&T) .Generated Token
DC A(&G-DSSCNTL) .Offset IP List Address
DC A(#&G) .Name Count
DC CL8'&G' .Host Name
*
The Macro statemnents are genereated by a program. The program generates a
TOKEN and its generated value is to be stored in the macro expansion.
After this program generates the macro statements the output is assembled.
In the Assembly, the macro expands as follows:
SRVRCONN CITI_TO_QSTB,YTOKEN,A0000203
DC CL20'CITI_TO_QSTB' .Name
DC AL4(YTOKEN) .Gene
DC A(A0000203-DSSCNTL) .Offs
DC A(#A0000203) .Name
DC CL8'A0000203' .Host
My question concerns the "YTOKEN" parameter.
I would Like to Store the "value" of YTOKEN and not YTOKEN itself,
as its not defined in the final assembly. Hence an error is generated
YTOKEN not defined.
For example If YTOKEN contained a value of 2E47B000, I wanted the macro
expansion to be:
SRVRCONN CITI_TO_QSTB,YTOKEN,A0000203
DC CL20'CITI_TO_QSTB' .Name
DC AL4(2E47B000) .Gene
DC A(A0000203-DSSCNTL) .Offs
DC A(#A0000203) .
DC CL8'A0000203'
Can someone suggest How I can get the Value of the variable YTOKEN stored as an
AL4(xxxxxxxx) or XL4(xxxxxxxx) in the Macro Expansion, and not an
AL4(YTOKEN)...
Paul
-----------------------------------