LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (June 1998, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 9 Jun 1998 16:19:10 -0400
Reply-To:     Boyd Newlin <boyd.newlin@RICHMOND.PPDI.COM>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Boyd Newlin <boyd.newlin@RICHMOND.PPDI.COM>
Organization: PPD Pharmaco, Inc.
Subject:      Is this a bug in SAS?
Content-Type: multipart/mixed;

The following code should NOT execute the proc print. It seems that when using macro open code with an %if and then "ne" operator along with an "|" operator. If I remove the... | "&a" ne "yes"..., the proc print will not execute. This is really bazzar. Does anyone know why?

data test; input var; cards; 1 2 3 4 5 6 7 ;

%macro bug(a);

%if "&a" ne "no" | "&a" ne "yes" %then %do; proc print data=test; run; %end;

%mend;

%bug(no);


[text/x-vcard]

begin: vcard fn: Boyd Newlin n: Newlin;Boyd org: PPD Pharmaco, Inc. adr: 2244 Dabney Road;;;Richmond;VA;23230;USA email;internet: boyd.newlin@richmond.ppdi.com title: SAS Programmer/Analyst tel;work: (804) 359-1390 x5036 tel;fax: (804) 359-1591 x-mozilla-cpt: ;0 x-mozilla-html: TRUE version: 2.1 end: vcard


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