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;

相关文章:

  • 2021-08-07
  • 2021-12-30
  • 2021-05-16
  • 2021-11-05
  • 2021-12-02
  • 2022-02-11
  • 2021-10-15
  • 2022-12-23
猜你喜欢
  • 2021-05-29
  • 2022-02-16
  • 2022-02-28
  • 2021-09-09
  • 2022-01-28
  • 2021-07-13
  • 2021-07-22
相关资源
相似解决方案