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 2010, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 9 Mar 2010 12:29:20 -0600
Reply-To:     Kevin Myers <KevinMyers@AUSTIN.RR.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Kevin Myers <KevinMyers@AUSTIN.RR.COM>
Subject:      Re: Using PROC FCMP Functions with %SYSFUNC
Comments: To: "Data _null_;" <iebupdte@gmail.com>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
              reply-type=original

Null -

Those suggestions are helpful, thanks.

FINDC allows the negative start value supported by my xIndexC function, but does not support the occurance number, and doesn't support the "q" modfier (as supported by the SCAN function) that would be needed to avoid searching within quoted values.

Modifying my existing code to use regular expressions would take quite a bit of time, but may be possible.

xIndexC gets used in my code primarily as a utility within other functions that are performing various string searches and manipulations. I may be able to make additional changes to the calling functions that would allow for replacing xIndexc with code based on FINDC and SCAN. That will also take some time, but presently seems like my best option.

I'll look into these further...

Regards, s/KAM

----- Original Message ----- From: "Data _null_;" <iebupdte@gmail.com> To: "Kevin Myers" <KevinMyers@austin.rr.com> Cc: <SAS-L@listserv.uga.edu> Sent: Tuesday, March 09, 2010 12:03 Subject: Re: Using PROC FCMP Functions with %SYSFUNC

> Does FINDC provide any of the features you describe for your XINDEXC? > > Do the new features of the SCAN functions and call routine provide any > further help? > > What about regex? > > > > On 3/9/10, Kevin Myers <KevinMyers@austin.rr.com> wrote: >> P.S. - I also wrote an xSubstr macro to eliminate the need for using my >> xSubstr fuction via %sysfunc, but xIndexc (similar to indexc, except that >> it >> ignores quoted and parenthesized values and also handles negative start >> values and counts) is not so easily replaced... >


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