Exploring, predicting and reporting with SAS Visual Analytics and SAS Visual Statistics

Removing 1st Two characters from a string

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 10
Accepted Solution

Removing 1st Two characters from a string

Hi all, I want to remove 1st two Character from a string i.e "MX2312323". I want to remove 'MX'. How i will do that. Please help me out


Accepted Solutions
Solution
4 weeks ago
Trusted Advisor
Posts: 1,800

Re: Removing 1st Two characters from a string

Look up the SUBSTR function in SAS Help.

 

Something like this will work

 

newvalue = substr(oldvalue,3);

View solution in original post


All Replies
Solution
4 weeks ago
Trusted Advisor
Posts: 1,800

Re: Removing 1st Two characters from a string

Look up the SUBSTR function in SAS Help.

 

Something like this will work

 

newvalue = substr(oldvalue,3);
Occasional Contributor
Posts: 10

Re: Removing 1st Two characters from a string

Thank u...
Highlighted
Occasional Contributor
Posts: 10

Re: Removing 1st Two characters from a string

Thank You.

SAS Employee
Posts: 242

Re: Removing 1st Two characters from a string

[ Edited ]
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 187 views
  • 2 likes
  • 3 in conversation