DATA Step, Macro, Functions and more

scan function -need help

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 115
Accepted Solution

scan function -need help

I have a variable which has values like "haga-89ndff-pssj" i need to extract the values which is between - for ex in this case 89ndff.

Can anyone help me how to do it in scan.


Accepted Solutions
Solution
‎11-09-2016 06:31 AM
Super User
Posts: 17,868

Re: scan function -need help

What's the issue with SCAN()? 

 Does the number of component vary?

 

field=scan(string, 2);

View solution in original post


All Replies
Solution
‎11-09-2016 06:31 AM
Super User
Posts: 17,868

Re: scan function -need help

What's the issue with SCAN()? 

 Does the number of component vary?

 

field=scan(string, 2);

☑ This topic is SOLVED.

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

Discussion stats
  • 1 reply
  • 137 views
  • 0 likes
  • 2 in conversation