I have a SAS dataset that has the following columns. I am looking for a macro proc freq that can freq the columns. If any of the columns are missing then I want to know.
Proc freq by default will indicate the number of records missing a single variable when doing one way frequency tables.
If you are doing some form of crosstab and need to know if the individual cross has any missing values then add the option / missing to the tables statement.
No macro needed.
Proc freq data=yourdataset;
run;
will perform one-way frequencies on every single variable in a data set, with the "missing" summary at the bottom.
Proc freq by default will indicate the number of records missing a single variable when doing one way frequency tables.
If you are doing some form of crosstab and need to know if the individual cross has any missing values then add the option / missing to the tables statement.
No macro needed.
Proc freq data=yourdataset;
run;
will perform one-way frequencies on every single variable in a data set, with the "missing" summary at the bottom.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and 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.