yongyitian 发表于 2014-3-11 11:10 
Sorry there are some errors that were made during cleaning and Simplifying the code after testing.
...
您用的SAS是9.3的么?我的是9.2的版本,我的log里面说
109 data _null_;
110 set types;
111 length ds $8.;
112 ds=cats ('type_', compress(type));
113 call execute('data '||ds||'; set test(where =(datatype="'||type||'")); run;');
114 run;
ERROR: Unable to load/initialize the function CATS.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds