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.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

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