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?
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.
t = indext( str , 'ufnc');
c = indexc( str , 'ufnc');
I = index ( str , 'ufnc');
t1 = indext( str , 'SAS' );
c1 = indexc( str , 'SAS' );
I1 = index ( str , 'SAS' );
proc print;run;proc print;
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Pobel
Sent: Friday, September 04, 2009 3:48 AM
Subject: Is there a function called "indext" in SAS 9.1.3?
Please take a look at the following DATA step:
if indext(str,'SAS') then put "This function works in 9.1.3!";
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!
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.