Hi:
What code have you tried? Is there ONLY 1 dash or hyphen in the character string. Is the length of the variable big enough to add 2 characters to the value? Here's one possibility but it will only work if there is exactly 1 dash in the value:
Cynthia
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Latest Updates
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.
Ready to level-up your skills? Choose your own adventure.
Browse our catalog!