<P>data two;</P>
<P>y='2';</P>
<P>run;</P>
<P>%let x=10;</P>
<P>%let var=y;</P>
<P>data one;</P>
<P>set two (keep=&var);</P>
<P>z=&var*&x;</P>
<P>run;</P>
<P>which one of the following is the value of the variable Z when the progeam finishes execution?</P>
<P>A.ERROR</P>
<P>B.20(as a numeric)</P>
<P>C.20(as a character)</P>
<P>D. .(missing numeric)</P>
<P>Answer: B</P>
<P>我只晓得macro variable 应该都是character, 但是macro variable进行运算时会自动从character transfer to numeric?</P>
<P>请高手帮忙解读为什么答案是B.3xxxx</P>


雷达卡



京公网安备 11010802022788号







