MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

literal string containing embedded apostrophe

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
tcurrier
Intermediate


Joined: 10 Feb 2006
Posts: 188
Topics: 68

PostPosted: Wed Jan 27, 2010 7:10 pm    Post subject: literal string containing embedded apostrophe Reply with quote

I want to query for all names that don't have alphabetic characters,
spaces, periods, or apostrophes ....

Example:

INSUREDS_NAME

JOHN J. O'CONNOR

[code:1:f476d5952d] AND TRANSLATE(D.INSUREDS_NAME,
'',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ .')
Back to top
View user's profile Send private message
tcurrier
Intermediate


Joined: 10 Feb 2006
Posts: 188
Topics: 68

PostPosted: Wed Jan 27, 2010 7:46 pm    Post subject: Reply with quote

By doing a little experimenting, looks like I found the solution:

[code:1:bd80123aa4]AND TRANSLATE(D.INSUREDS_NAME,
'',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ .''')
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Thu Jan 28, 2010 11:20 am    Post subject: Reply with quote

tcurrier,

Glad you figured it out yourself , but if you searched in the database forum , you would have found this

http://www.mvsforums.com/helpboards/viewtopic.php?t=11036&highlight=Quote

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group