美文网首页
取前N条记录

取前N条记录

作者: 寒微123 | 来源:发表于2018-10-30 14:14 被阅读0次

data temp;
set A;
if n<=n;
run;
方法一:
data temp1;
set sashelp.air(firstobs=n obs=n/obs=n);
run;
/firstobs.n < obs.n/
方法二:
proc sql;
create table temp2 as
select * from sashelp.air(firstobs=n obs=n/obs=n);
quit;
/firstobs.n < obs.n/
方法三:
proc sql inobs=n;
create table temp3 as
select * from sashelp.air;
quit;
方法四:
proc sql outobs=n;
create table temp4 as
select * from sashelp.air;
quit;

相关文章

网友评论

      本文标题:取前N条记录

      本文链接:https://www.haomeiwen.com/subject/rylbgftx.html