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
|