An Idea Exchange for SAS software and services

Comments
by Super Contributor
on ‎10-04-2013 09:28 AM

Since you've mentioned this is posted at the wrong place, you should write this question again in the appropriate forum (probably in data step procedures) and expect a moderator will delete your post.

In the mean time, here's a partial answer

cmiss and nmiss are counting the missing values for character/numeric list of variables respectively.

If you wish to simplify the list syntax, you can consider defining an array like

array v{*} var1-var6; /* or a hard typed list of your vars if they don't bear similar names */

if nmiss(of v) < 3 then do;

/* your calculations here */

end;

else /* etc */

Idea Statuses
Top Liked Authors