由买买提看人间百态

topics

全部话题 - 话题: codenum
(共0页)
s*********e
发帖数: 944
1
来自主题: Statistics版 - 请教sas adv 130题中 第12题 第19题
Q12:
%let idcode=Prod567;
which one of the following statements stores the values 567 in the macro
variable CODENUM?
答案是C:
%let codenum=%substr(&idcode, %length(&idcode)-2);
这-2是什么意思?
Q19:
SAS data set TEMP has the following distribution of values for variable A:
A Frequency
1 500,000
2 500,000
6 7,000,000
8 3,000
which one of the following SAS programs requires the least CPU time?
答案是C:
data new;
set temp;
if a=6 then b='Large';
else if a in (1,2) then b='Medium';
else if a=8... 阅读全帖
(共0页)