Date: Tue, 23 May 2006 03:59:35 -0700
Reply-To: Hari <excel_hari@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Hari <excel_hari@YAHOO.COM>
Organization: http://groups.google.com
Subject: Quoting IN Code
Content-Type: text/plain; charset="iso-8859-1"
Hi,
If I use the IN operator for string variable comparison then which is
better to use for value comparison -- single or double quotes? (Or does
this depend on whether I have macro variables or not)
Like,
if DayOfWeek in ("Mon", "Tue") then Status = 1;
or
if DayOfWeek in ('Mon', 'Tue') then Status = 1;
Regards,
HP
India
|