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 (May 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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


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