zhengbo8 发表于 2013-6-26 20:03 
a是你的数据集。
hello,按程序执行,系统提示如下,何解?
180 data result(drop=i);
181 set test;
182 array x _numeric_;
183 do i=1 to dim(x);
184 if nmiss(of x:)=dim(x) then delete;
-----
71
ERROR 71-185: NMISS 函数调用没有足够的参数。
185 end;
186 run;
NOTE: 由于出错,SAS 系统停止处理该步。
WARNING: 数据集 WORK.RESULT 可能不完整。该步停止时,共有 0 个观测和 10 个变量。
WARNING: 数据集 WORK.RESULT 由于该步已停止,而没有被替换。
NOTE: “DATA 语句”所用时间(总处理时间):
实际时间 0.04 秒
CPU 时间 0.04 秒
187
188
189 data result(drop=i);
190 set test;
191 array x _numeric_;
192 do i=1 to dim(x);
193 if nmiss(of x)=dim(x) then delete;
194 end;
195 run;
ERROR: 数组下标越界,位置: 行 193 列 31。
weight=4111 black=0 married=1 boy=1 mom_age=-3 smoke=0 cigsper=0 m_wtgain=-16 visit=1 ed=0 _I_=. i=1 _ERROR_=1
_N_=1
NOTE: 由于出错,SAS 系统停止处理该步。