data inventory;
input product_id $ instock price;
datalines;
p001r 12 125.00
p003t 34 40.00
p301m 23 500.00
pc02m 12 100.00
;
run;
data inventory;
set inventory;
cost=put(price/1.3,.2);
run;
我的目的就是想让cost这个变量只输出2位小数。但是这个程序不对,不知道应该怎么做!