通过示例学SAS(9)--显示数据
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;