Log里出来这样一个Note:
NOTE: Numeric values have been converted to character values at the places given by:
(Line):(Column).
3:31 3:105 3:111 5:31 5:105 5:111 7:31 7:105 7:111 9:31
9:105 9:111 11:31 11:105 11:111 13:31 13:105 13:111 15:31 15:105
15:111 17:31 17:105 17:111 19:31 19:105 19:111 21:31 21:105 21:111
23:31 23:105 23:111 25:31 25:105 25:111
请问如何解决这个问题,我的那个变量本来就是num类型的,我不要它变成char,因为否则无法计算。再有(Line):(Column). 3:31 如何对应具体那个观察值得。谢谢啦
原代码是:
%macro define;
data;
set temp1;
%do i=1 %to &T %by 1;
%let year=%eval(2010+&i);
%let yearLag1=%eval(&year-1);
%do n=1 %to 1000 %by 1;
%global Price_2010_&n;
%global ROE_&year._&n;
%global BPS_&yearLag1._&n;
%end;
call symput(("Price_"||"2010"||"_"||compress(_n_)),Price_2010);
call symput(("ROE_"||"&year"||"_"||compress(_n_)),ROE_&year);
call symput(("BPS_"||"&yearLag1"||"_"||compress(_n_)),BPS_&yearLag1);
%end;
run;
%mend define;
%define;