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.
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!
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.