1.在第1行后插入空行
data test1;
set sashelp.class;
if _N_ = 1 then do;
output;
call missing(of _all_);
end;
output;
run;
2.在第1行前插入空行
data test2;
set sashelp.class;
if _N_ = 1 then do;
call missing(of _all_);
output;
set sashelp.class point = _N_;
end;
output;
run;
3.交换奇偶行
data test3;
do i = 1 to 2;
set sashelp.class end = eof;
if i = 2 or eof then output;
end;
do i = 1 to 2;
set sashelp.class;
if i = 1 then output;
end;
run;