SAS编程与数据挖掘商业案例_姚志勇code
data test;
input x y z @@;
cards;
1 2 3 4 5 6
;
run;
proc sql;
create view view1 as
select
*
from sashelp.class
;
quit;
proc format;
value fmt 1='a'
;
run;
%macro test;
data test;
x=1;
run;
%mend test;
%test;
libname fv ' F:\Data_Model\Book_data\chapt2';
data fv.forever;
Input x y z;
Cards;
1 2 3
4 5 6
;
run;
data temp;
Input x y z;
Cards;
1 2 3
4 5 6
;
run;
libname user ' F:\Data_Model\Book_data\chapt2';
data forever;
Input x y z;
Cards;
1 2 3
4 5 6
;
run;
options user=fv;
libname fv ' F:\Data_Model\Book_data\chapt2';
data forever;
Input x y z;
Cards;
1 2 3
4 5 6
;
run;
options user=work;
data temp;
Input x y z;
Cards;
1 2 3
4 5 6
;
run;
proc contents data=sashelp.class;run;
proc contents data=sashelp.class out=class_cnt;run;
libname hsdb db2 user=xxuser password="xxxx" datasrc=datadb;
data idx(index=(x));
input x y z;
cards;
1 2 3
;
run;
2022-09-29 23:52:58
92KB
code
1