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 (July 2000, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


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