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 (October 2009)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 19 Oct 2009 15:06:02 -0700
Reply-To:   Cheryl Scott <clscott@tmcc.edu>
Sender:   "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:   Cheryl Scott <clscott@tmcc.edu>
Subject:   I have a long string variable (62 chars) with embedded underscore characters. Sample data:
Content-Type:   multipart/alternative;

I have a long string variable (62 chars) with embedded underscore characters. Sample data: THTR105_THTR205______ ELEC101_ELEC101_ELEC151_____ IRW101_IRW101_IRW151_IRW201_IRW201___ I want to retain the underscore within the string but remove all trailing occurrences of the string. Here is what I wrote: * remove trailing underscore. string newvar (a62). compute newvar = rtrim(oldvar, '_'). The syntax does not generate an error message. It just runs, but the new variable still has the trailing underscores. Any assistance would be appreciated. Cheryl Scott IR Data Manager TMCC Integrate Implementation Team Office of Institutional Research Truckee Meadows Community College clscott@tmcc.edu (775)673-8239 (w)


[text/html]


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