Date: Tue, 18 Jul 2000 15:25:21 -0600
Reply-To: Michael Thomas <mjthom4@USWEST.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Michael Thomas <mjthom4@USWEST.COM>
Organization: TRILOGY
Subject: Q: Macro question
Content-Type: multipart/mixed;
I am trying to use (and understand) the %index function in a macro......
options mprint mlogic symbolgen;
%macro testit;
data xxxx(keep=celltldr index);
set ertsdata.wcsp1c;
index = %index(celltldr,'(na)');
run;
%mend;
%testit;
in this situation, using the %INDEX function, the variable index ALWAYS
is equal to 0, whereas if I use the INDEX function I get a mixture of
0's and 1's (which is what I expect).
I am sure there is a very logical (and simple) explanation for it.....
it just escapes me
TIA
--
Michael Thomas
Consultant, Trilogy
phone: (303) 703-2199
pager: (303) 821-1582
[text/x-vcard]
begin:vcard
n:Thomas;Michael
tel;pager:303/821 1582
tel;work:303/703-2199
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:mjthom4@uswest.com
end:vcard