Hi,
I want to enter a "-" after 2 numbers in a column for all numbers.
Examples: All numbers in the column are like 1234567, and I want to add "-" after 2 numbers to look like 12-34567
Please help.
Thanks
Is your 1234567 a numeric or a character variable?
Numeric
I have a column with multiple numbers like -
12-34567
78-465697
102-589865
78-56546
I just to remove the dash ('-") between the numbers, so it another column (calculated) looks like -
1234567
78465697
102589865
7856546
Cheers
Use the compress() function.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.