LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2009)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 4 May 2009 02:58:54 -0700
Reply-To:     Gyorgy Bea <ciao_beatag@yahoo.com>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Gyorgy Bea <ciao_beatag@yahoo.com>
Subject:      macro argument
Content-Type: multipart/alternative;

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


[text/html]


Back to: Top of message | Previous page | Main SPSSX-L page