I have a long string variable (62 chars) with embedded underscore characters. Sample data:
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.
IR Data Manager
TMCC Integrate Implementation Team
Office of Institutional Research
Truckee Meadows Community College