LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (September 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 2 Sep 2005 09:03:25 -0700
Reply-To:     vincent.fayolle@GMAIL.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         vincent.fayolle@GMAIL.COM
Organization: http://groups.google.com
Subject:      Re: call symput in a macro
Comments: To: sas-l@uga.edu
In-Reply-To:  <1125674880.221060.280260@o13g2000cwo.googlegroups.com>
Content-Type: text/plain; charset="iso-8859-1"

It doesn't work if the %global statement is after the creation of the mv.

I can do it in two time,... it's not very nice... I'd prefered in one time

%macro mpTest ;

data _null_ ; set WORK.TEST ; call symput("mvOBS" ,_n_) ; end ;

%do i = 1 %to &mvOBS ; %global mvSERVSAS&i ; %end ;

data _null_ ; set WORK.TEST ; call symput("mvSERVSAS" !! left(put(_n_,3.)) , MAVAR ) ; run ;

%mend ;


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