BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
vvferreira
Calcite | Level 5

Hello Guys,

is there currently any function that can validate the phone number, mobile? 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

A quick google search shows a lot of variation in this topic. 

 

Please provide some sample input data and expected output to demonstrate your problem. As you can see from the posts above there can be many variations in the source data and we're obviously unfamiliar with your data.

View solution in original post

5 REPLIES 5
Reeza
Super User
Validate as in check that the format is correct, or validate as in check that it's an operational phone number?
vvferreira
Calcite | Level 5

Hi, @Reeza
I would just like to validate if format is correct.

Reeza
Super User

A quick google search shows a lot of variation in this topic. 

 

Please provide some sample input data and expected output to demonstrate your problem. As you can see from the posts above there can be many variations in the source data and we're obviously unfamiliar with your data.

vvferreira
Calcite | Level 5

Thanks Reeza,

I'm a new member and I'm still getting used to it here 🙂

ballardw
Super User

Be aware that just a string of digits is insufficient. You need the spaces, dashes or whatever to separate out parts like, in US, Area-code and number.

Found this out with a set of "phone numbers" that had no spaces that included foreign country codes. Treated as US numbers and was dialing Colorado instead of Brazil.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 559 views
  • 3 likes
  • 3 in conversation