《苏州大学sas作业》由会员分享,可在线阅读,更多相关《苏州大学sas作业(3页珍藏版)》请在金锄头文库上搜索。
1、苏州大学数学科学学院统计计算与SAS软件包实验报告姓名:张耀学号:年级: 12统计 日期: 实验3 ODS及其宏实验目的:掌握ODS和SAS宏实验内容:1 PROC PRINTTO过程的作用及其例子2 举例说明ODS LISTING的作用3 举例说明ODS TRACE的作用4 举例说明ODS HTML的作用5 举例说明ODS OUTPUT的作用6 SAS宏变量的定义,调用(包括在字符串中的调用)7 多个&号的作用结果与分析1 PROC PRINTTO过程的作用及其例子作用即为改变log窗口中的输出位置,使得其在特定的文件夹下生成。举例proc printto log= d:jaynewlog.
2、txt; proc print data=sashelp.class;proc printto;run;2 举例说明ODS LISTING的作用ods listing close;proc print data=sashelp.class;run;ods listing;3 举例说明ODS TRACE的作用ods trace on;proc univariate data=sashelp.class;class name;var weight;run;ods trace off;结果为4 举例说明ODS HTML的作用ods listing close;ods results off;ods
3、html path=E:jay (url=none) body=ods_loc.html (title=ods browser title) contents=ods_toc.html (title=ods contents) frame=ods_frm.html(title=ods frame) newfile=proc ;proc univariate data=sashelp.class;class sex;var weight;histogram;run;proc means data=sashelp.class n min mean max;class sex;var weight
4、height;run;ods html close;ods results off;ods listing;(*改了个路径,它报错了)5 举例说明ODS OUTPUT的作用ods listing close;ods results off;ods output basicmeasures=bm quantiles=quantiles;proc univariate data=sashelp.class;class sex;var weight height;run;ods results on;ods listing;6 SAS宏变量的定义,调用(包括在字符串中的调用)一下即为sas宏变量%l
5、et m_variable=m_value; %let m_variabe=3调用格式:&宏变量名;例1:%let x=30;Data a;X=&x.;proc print;Run;7 多个&号的作用在每次扫描中连续使用两个&号就改为一个&号,单个&与后面的字符串按宏变量名解读若扫描后仍留有&符号就再进行扫描,直到没有&号为止。 在多年收治肝病、出血热、麻疹、艾滋病等传染病的临床实践中,逐步认识到中医药在传染病防治领域的优势,因此在制定医院长期发展规划中,有步骤的增加中医药在整体医疗工作中的比重,不断加强中医学科建设of rural drinking water sources, protection of drinking water sources in rural areas by the end of the delimitation of the scope of protection, complete with warning signs, isolating network protection facilities