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.

 

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 1087 views
  • 0 likes
  • 3 in conversation