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 (March 1999, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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.
Comments: To: gtiedens@njcmail.ups.com

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


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