jingju11 发表于 2012-11-22 10:17
%SYSEVALF() is not able to resolve the functions, for example, exp(), constant('pi'), etc. Do you ...
- data raw;
- input string :$20.;
- datalines;
- 1+1
- 2*1.2
- 1/3
- 2**2
- 2*(1+3)
- exp(2)
- constant('pi')
- ;
- data _null_;
- set raw end=last;
- length code $1000;
- retain code;
- if _n_=1 then code="data test; length string $"||strip(lengthm(string))||";";
- code=cats(code,"string=",quote(strip(string))
- ,";number="||strip(string)
- ,"; output;");
- if last then do;
- code=cats(code," run;");
- call execute(code);
- end;
- run;


雷达卡

京公网安备 11010802022788号







