macro argument

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

macro argument

Gyorgy Bea
Hi All,

I have a macro called from inside an other macro:

DEFINE !assign (value !ENCLOSE('(',')')
/name !ENCLOSE('(',')')).

compute !CONCAT(!name,!value)=1.

!ENDDEFINE.

!assign value (#m) name (!n).


Is it possible to pass the value of a variable as argument for a macro? I have variable #m with numeric values (1-999) and I want to pass these values to the macro !assign , but if I write  !assign value (#m) name (!n) it takes as "#m" string, and not the value of the variable.
What do I do wrong? Please advise.

Thanks a lot,
Beata