求助:数据的变换?
下面的程序:
data a;
input x;
cards;
1234567891
;
run;
data b;
set a;
format w 8.2;
w=x/100000000;
run;
data c;
set b;
length text $ 8.;
text=cats(w);
y=w;
run;
you can find the defination of the CATS() function from SAS help document.
the function to convert numeric value to charactor value is PUT(), i.e. text=put(w,8.2);y=input(text,8.2);