[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: [sqr-users] how to remove a single quote from a name
- Subject: Re: [sqr-users] how to remove a single quote from a name
- From: "PeterG Clark" <PeterG.Clark@vac-acc.gc.ca>
- Date: Tue, 24 Oct 2006 11:03:29 -0300
- Delivery-date: Fri, 27 Oct 2006 17:14:12 -0400
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
I think you can use the translate for that as well:
let $q = chr(39)
let $null = ''
let $lname = translate($lname,$q,$null)
I haven't tested it, but give it a shot :-)
>>> Patricia.Overcashier@aam.com 2006/10/17 13:30:28 >>>
Hi everyone,
I select a last name and before comparing it I remove all special characters.
Thanks to all of your help, I can do that successfully.
The only character that I seem to struggle with removing is the single quote
I have the name O'Hara
I want it to be OHara
I am using translate to remove all of the other oddities.
let $lname = translate(lower($lname),'абвзийксуцн','aaaceeenooi')
I have tried this:
find ''' in $lname 0 #pos My errors happen here. I can't find the
single quote to get rid of it.
if #pos > 0
let #pso2 = #pos + 1
let $newlname = substr(lname,0,#pos)||substr($lname,#pos2)
end-if
Thanks again,
Patti Overcashier
Information Technology - PeopleSoft
American Axle & Manufacturing, Inc.
Detroit Gear Plant 3
1840 Holbrook
Detroit, MI 48212
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users