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 (September 2009, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sun, 6 Sep 2009 11:35:39 -0400
Reply-To:     Nathaniel Wooding <nathaniel.wooding@DOM.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Nathaniel Wooding <nathaniel.wooding@DOM.COM>
Subject:      Re: Is there a function called "indext" in SAS 9.1.3?
In-Reply-To:  <9e215cfe-d423-4930-bf22-6ae584b62429@o9g2000prg.googlegroups.com>
Content-Type: text/plain; charset="us-ascii"

Art T. sent me a note offline that tested IndexT and IndexC and this test showed that they are not identical. However, based on the code below, it appears that IndexT is an alias for Index since they look for the occurance of a complete string and not the occurance of one of a group of characters.

data test; str="SAS function"; t = indext( str , 'ufnc'); c = indexc( str , 'ufnc'); I = index ( str , 'ufnc'); t1 = indext( str , 'SAS' ); c1 = indexc( str , 'SAS' ); I1 = index ( str , 'SAS' ); run;

proc print;run;proc print; run;

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Pobel Sent: Friday, September 04, 2009 3:48 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Is there a function called "indext" in SAS 9.1.3?

Hi, everyone

Please take a look at the following DATA step:

data _null_; str="SAS function"; if indext(str,'SAS') then put "This function works in 9.1.3!"; run;

Here is the log information:

This function works in 9.1.3! NOTE: DATA statement used (Total process time): real time 0.01 seconds cpu time 0.00 seconds

There is no ERROR or WARNING message, it seems that the function 'indext' does the same as function 'index'. But I cant find this function in SAS help. So I wonder does this function really exist?

Any help is highly appreciated! Thanks!

Pobel CONFIDENTIALITY NOTICE: This electronic message contains information which may be legally confidential and or privileged and does not in any case represent a firm ENERGY COMMODITY bid or offer relating thereto which binds the sender without an additional express written confirmation to that effect. The information is intended solely for the individual or entity named above and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.


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