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 2025: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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