🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 02-23-2012 12:46 PM
(49550 views)
Hi,
I have a character field i'd like to clean up by using a delimiter.
for example my data has a bunch of codes that look like:
tmp435-abc
tmp902-cde
tp309-dmco
etc.
i'd like to clean up the variable to cut off at the '-' delimiter.
I'm not sure what the right function to use is.
Thanks for your help.
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
varname = scan(varname, 1, '-');
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
varname = scan(varname, 1, '-');
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
thank you.