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 (February 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 25 Feb 2008 12:26:06 -0800
Reply-To:   plw213 <Paul.Leland@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   plw213 <Paul.Leland@GMAIL.COM>
Organization:   http://groups.google.com
Subject:   "IN" Operator in Macro Code
Comments:   To: sas-l@uga.edu
Content-Type:   text/plain; charset=ISO-8859-1

Hello all.

I am trying to use the IN operator in macro code, but cannot get it to work. the code look like this:

%if &RptMBS2 # Middle Key %then %do ; . . %end;

The Log issues the following error: ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: &RptMBS2 # Middle Key

All I am trying to do is check for the condition that the Character value of &RptMBS2 is either 'Middle' or 'Key'.

Anyone know why this doesn't work?

Thanks -Paul


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