sas datasets过程(重要)
datasets相关选项的运用
proc datasets library =sashelp nolist; copy in=sashelp out=work; select air class vslib ac ets; *先于copy执行;
quit;
proc datasets library=work nolist; delete class ets(mt=catalog); *1;
copy in=work out=workme move memtype=data; *3;
select air ac(mt=catalog); *2;
quit;
proc datasets library=work kill; *删除所有类型的文件;
quit;
*各种修改格式,索引,标签,等等;
proc datasets library=workme kill; proc datasets library=sashelp nolist; copy in=sashelp out=workme; select class air; proc datasets library=workme nolist; modify class(label='test subjects' read=green); (read对数据集进行加密,后面跟密码) index create idx=(name sex)/nomiss unique; (建立多变量索引); format height 6.2; (规定格式); label height='test height'; (规定标签); modify air; rename date=new_date; quit;