楼主: ljpest
2451 11

[问答] 求助:如何将头n行数据设为空值。 [推广有奖]

11
ljpest 发表于 2014-10-20 01:04:43
teqel 发表于 2014-10-19 11:22
看看这个:

data test1(drop=temp);
您太强大了,对了,多谢。

12
bobguy 发表于 2014-10-20 05:05:18
you can conditionally use call missing routine. See example below.

proc print data=sashelp.class;
run;

data new_class;
   set sashelp.class;
   if _n_<=5 then call missing(age);
   run;

proc print;run;

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 20:46