How do I remove all SAS formats from a sas7bdat table?
10,393
The following code will strip all formatting from the table FORMATTED_TABLE
and create a new table named UNFORMATTED_TABLE
data UNFORMATTED_TABLE;
set FORMATTED_TABLE;
format _all_;
run;
Author by
JustinJDavies
I enjoy writing code to solve analytical problems. My main tools are C#.NET, Powershell, Python, R, SAS (including WPS), SQL, and VBA. I ride a Surly Cross-Check bicycle on my daily commute.
Updated on June 04, 2022Comments
-
JustinJDavies almost 2 years
I have a sas7bdat table that contains format information but I do not have the formats, so lots of the data appears as
*
and doesn't make much sense. I know the informat data that lies beneath is there — how can I remove all formats from the table?