BookmarkSubscribeRSS Feed
vishalrajpoot3
Obsidian | Level 7

 

I know proc means with N and Nmiss option provides the no of populated and missing observation for numeric variable. But which proc/options we use to know the missing value of character variable ?

 

Lets have the below data set as an example.

 

data abc;
input name $ state $;
datalines;
a up
b mp
c .
d hp
e .
f mp
. gj
h hp
;
run;

4 REPLIES 4
PeterClemmensen
Tourmaline | Level 20
proc freq data=abc;
   tables state / missing nocum nopercent;
run;
Ksharp
Super User

PROC SQL.

 

data abc;
input name $ state $;
datalines;
a up
b mp
c .
d hp
e .
f mp
. gj
h hp
;
run;
proc sql;
select nmiss(name) as nmiss_name,nmiss(state) as nmiss_state
 from abc;
quit;

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Update

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4 replies
  • 1528 views
  • 0 likes
  • 5 in conversation