SAS 视频学习笔记

法迈医讯 SAS 笔记

第二章引用文件和系统选项设置
显示数据集内容属性:
proc contents data=sasuser._all_  nodetails(不显示细节);
run;


系统设置属性(global):
ods html close ;(关闭在output窗口显示html形式的结果)
ods listing (;把结果以listing 形式显示在Log窗口)
options 
pageno=1 pagesize=17 linesize=65 firstobs=5 (观测起始行号) obs=7(观测的最后行号) nosource(不把运行过程和结果显示在Log窗口);

查看当前系统选项
proc options;
run;

yearcutoff=1926;(指定计算机编译1926开始往后100年的范围,仅限于2位年份)

第四章创建列表报告
where name  contains ' xxxx' ;(找出name包含xxxx的观测,if 不适用)

proc print data=work.activity;
    avar gae height weight fee;
    where age>30;
    sum fee;
    by actlevel;
    id actlevel;
    pageby actlevel;(按照变量进行分页)
run;


titles and footnotes ;

titles1="xxxx";
titles2="aaa";
titles3='vvvv";

titles2="ppp" (替换title2,清空后续titles,footnotes同理);

titles;
footnote;(清空所有);

proc print data=march split="*";(这样保证了label 会根据*符号进行正确的换行)
    var ssn name date salary;
    label salary="anual * income";
run;
    






全部评论

相关推荐

头像
04-26 15:00
已编辑
算法工程师
点赞 评论 收藏
转发
点赞 收藏 评论
分享
牛客网
牛客企业服务