【SAS NOTES】print&format


proc print data=mysas.sort1;
	sum gtone shen dong all;
run;

  可以在print中增加sum选项来直接汇总值。

 【the little sas book】standard fromats in page 131.
 1 data mysas.formatone;
 2     infile 'e:\fromatesone.txt' firstobs=2;
 3     input gender age;
 4 proc format ;
 5     value gendera 1='male'
 6                  2='female';
 7     value agea low-10='a'
 8                 10-20='b'
 9                 20-40='c';
10 proc print data=mysas.formatone;
11     format gender gendera. age agea.;
12 run;
用format来翻译明细数据中数字的含义显示是个好办法。

 

 

posted on 2013-01-25 18:40  colipso  阅读(231)  评论(0编辑  收藏  举报

导航