yuerqieqie 发表于 2013-4-23 03:19 
data b;
set a;
if nmiss(x, z)>0 then delete;
NMISS 很好
如果Y 为空值也要删除是不是应该用 if nmiss(x, y, z)>0啊
另外NMISS 和N, CMISS 以及MISSING的比较在SAS help里列举如下,如果楼主要处理的数据不全为num型可以参照
The NMISS function returns the number of missing values, whereas the N function returns the number of nonmissing values.
NMISS requires numeric values, whereas CMISS works with both numeric and character values.
NMISS works with multiple numeric values, whereas MISSING works with only one value that can be either numeric or character.