Date: Mon, 8 Mar 1999 15:54:19 -0500
Reply-To: Bernard Tremblay <bernard@CAPITALE.QC.CA>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Bernard Tremblay <bernard@CAPITALE.QC.CA>
Subject: Find the word spflog in a text string.
Hi,
Use the index function:
i=index(txt,'spflog');
It give the the position of spflog in the string
or zero if it is not found.
Regards,
Bernard Tremblay
\\\|///
\\ - - //
( @ @ )
+-----oOOo-(_)-oOOo-------+--------------------------------------+
| Bernard Tremblay | |
| La Capitale | Tel: (418) 646-2401 |
| | Fax: (418) 646-5960 |
| | Int: Bernard.Tremblay@capitale.qc.ca |
+-------------------------+--------------------------------------+
| Imaginasys enr | Res: (418) 658-1411 |
| | Int: bertrem@quebectel.com |
+--------------Oooo-------+--------------------------------------+
oooO ( )
( ) ) /
\ ( (_/
\_)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>Date: Mon, 8 Mar 1999 15:41:17 -0500
>>>From: Gary Tiedens <gtiedens@njcmail.ups.com>
>>>
>>>Hello all,
>>>
>>> I have a dataset with over 600,000 observations in it. I am trying to
extract
>>> only those obs. that have the word spflog in it.
>>>I tried the scan function and the result that I received were not what I
wanted,
>>> I also tried substr. Any ideas.....
>>>
>>>
>>>xxx.xxxx.spflog.xxx
>>>xxx.spflog.xxx.xxxx
>>>
>>>
>>>
>>> Gary E Tiedens
>>> United Parcel Service
|