您的位置:首页 > 其它

通过示例学SAS(9)--显示数据

2008-08-22 16:26 253 查看
1.显示前n个数据。OBS=n,如

title "First Five Observations from SALES";

proc print data=learn.sales(obs=5);

run;

2.在report 过程中产生新变量

title "Computing a New Variable";

proc report data=learn.medical nowd;

column Patno Weight WtKg;

define Patno / display "Patient Number" width=7;

define Weight / display noprint width=6;

define WtKg / computed "Weight in Kg"

width=6 format=6.1;

compute WtKg;

WtKg = Weight / 2.2;

endcomp;

run;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: