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;

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM