54.Consider the following data step:
data WORK.TEST;
set SASHELP.CLASS(obs=5);
retain City 'Beverly Hills';
State='California';
run;
The computed variables City and State have their values assigned using two different
methods, a RETAIN statement and an Assignment statement. Which statement
regarding this program is true?
A. The RETAIN statement is fine, but the value of City will be truncated to 8
bytes as the LENGTH statement has been omitted.
B. Both the RETAIN and assignment statement are being used to initialize new
variables and are equally efficient. Method used is a matter of programmer
preference.
C. The assignment statement is fine, but the value of City will be truncated
to 8 bytes as the LENGTH statement has been omitted.
D. City's value will be assigned one time, State's value 5 times.
Answer: D
请问ABC的问题在哪里呢?请大神在自己解释一下这两个语句的用法,谢谢!



雷达卡



京公网安备 11010802022788号







