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.);
The 2025 SAS Hackathon Kicks Off on June 11!
Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.