BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mauri0623
Quartz | Level 8

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.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

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.

 

 

View solution in original post

2 REPLIES 2
Reeza
Super User
Please expand your problem with an example and a more detailed description of what you'd like. Including anything you've tried so far would be helpful as well.
ballardw
Super User

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.

 

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1204 views
  • 0 likes
  • 3 in conversation