保存为Word文件:
data a;
input x y@@;
cards;
1 2
3 4
3 5
6 7
;
run;
options nodate nonumber;
ods rtf file='d:name.doc';
proc reg data=a;
model y=x;
run;
ods rtf close;
保存为PDF文件:
data a;
input x y@@;
cards;
1 2
3 4
3 5
6 7
;
run;
ods printer pdf file ='odsprinter.pdf';
proc reg data=a;
run;
ods printer close;
保存为HTML文件:
ods html file ='d:new.html';
proc means data=sasuser.score;
var math;
title '数学成绩';
run;
ods html close;
联系客服