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 (June 2007)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 28 Jun 2007 21:32:04 -0400
Reply-To:   Richard Ristow <wrristow@mindspring.com>
Sender:   "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:   Richard Ristow <wrristow@mindspring.com>
Subject:   Re: How to Replace a single quote
Comments:   To: Ty Noonan <tynoonan@yahoo.com>
In-Reply-To:   <888374.57022.qm@web62008.mail.re1.yahoo.com>
Content-Type:   text/plain; charset="us-ascii"; format=flowed

At 08:37 PM 6/28/2007, Ty Noonan wrote:

>Is there a way to remove a single quote ' from string data. SPSS does >not seem to like single quotes in the replace function.

Are you running into the problem of declaring a constant whose value is a single quote? Not tested, but

COMPUTE <target> = REPLACE(<source>,"'",<replacement>).

should work. If it doesn't, maybe re-post, with the syntax you're using, test data, any error or warning messages, and what you hoped for vs. what you got.

-Very good luck, Richard


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