Date: Fri, 14 Mar 1997 17:03:37 -0500
Reply-To: Junming Zhu <jzhu@HSPH.HARVARD.EDU>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Junming Zhu <jzhu@HSPH.HARVARD.EDU>
Organization: Harvard University University Information Systems
Subject: Macro Quote question
In-Reply-To: <Pine.SOL.3.91.970314151917.6653A-100000@hsph.harvard.edu>
Content-Type: TEXT/PLAIN; charset=US-ASCII
Thanks to Tom Abernathy and Jay Weedon. They confirmed me to use DOUBLE
quote on the macro variable, it works well.
> Suppose I have a macro variable mvar=TEST, I want to know how to add
> single ' ' on it so that I can use it in data step?
>
>
> data new (keep=x);
> set old;
> if x=&mvar; (if x='TEST' is what I want)
>
Zhu Junming
|