Date: Mon, 29 Apr 2002 16:40:15 -0400
Reply-To: "Balint, Jess" <JBalint@ALLDATA.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Balint, Jess" <JBalint@ALLDATA.NET>
Subject: Macro Problem
Content-Type: text/plain; charset="iso-8859-1"
Hello all. I have this code that I wrote that uses a macro variable and the
str() function to make two different datasets. Here is the line:
data work.chgtrp_%if &x=2 %then %str(t);%else %str(o);;
The problem is that there is a space in there somewhere that is being parsed
as parted of my code and not the macro. I know this because I keep getting
two datasets of output:
NOTE: The data set WORK.CHGTRP_ has 50 observations and 7 variables.
NOTE: The data set WORK.O has 50 observations and 7 variables.
How should I go about fixing this?