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);
|