可以用 DATA 步截取数据集的前 n 行。

/*保留数据集前100行*/
data ds2;
set ds1(firstobs=1 obs=100); run;

firstobs : the first row number.

obs : the rows you want to keep.

 

posted on 2022-02-09 22:27  MOZY  阅读(1067)  评论(0编辑  收藏  举报