I have tables with character columns for SSNs. I will like to build a format to have those numbers look like actual SSNs with the dashes, but still be a chracter column, not numeric.
Use the SAS supplied format in a data step after temporarily treating SSN as numeric.
SSN_as_wanted = put(input(ssn,best.), ssn11.);
2025 SAS Hackathon: There is still time!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!