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 (June 2004, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 28 Jun 2004 10:43:21 -0400
Reply-To:     "Ross, Michael D" <michael.ross@ASTRAZENECA.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Ross, Michael D" <michael.ross@ASTRAZENECA.COM>
Subject:      Macro Question
Content-Type: text/plain; charset="iso-8859-1"

Hi All, I'm having trouble with creating multiple datasets using &n concatenated on the end of the DS name. Any suggestions?

%Macro Test(ds=,n=); Data bad_data_&n bad_xxxx_&n; merge &ds(in=a) xxxx(in=b); by something; if a and not b then output bad_data_&n; if b and not a then output bad_xxxx_&n; run; %Mend Test;

%macro(ds=aaaa,n=1); %macro(ds=bbbb,n=2);


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