70-39. The following SAS program is submitted:
data WORK.AUTHORS;
array Favorites{3} $ 8 ('Shakespeare','Hemingway','McCaffrey');
run;
What is the value of the second variable in the dataset WORK.AUTHORS?
A. Hemingway
B. Hemingwa
C. ' ' (a missing value)
D. The program contains errors. No variables are created.
Answer: B
(格式 $ 8 居然没有点)
--------------------------------------70-31. Given the following raw data records in DATAFILE.TXT:
----|----10---|----20---|----30
Kim,Basketball,Golf,Tennis
Bill,Football
Tracy,Soccer,Track
The following program is submitted:
data WORK.SPORTS_INFO;
length Fname Sport1-Sport3 $ 10 ;
infile 'DATAFILE.TXT' dlm=',';
input Fname $ Sport1 $ Sport2 $ Sport3 $;
run;
proc print data=WORK.SPORTS_INFO;
run;
(10后面没点)
这两题我都在SAS上run了,而且是打点和不打点两种情况,结果是,打点和不打点的结果完全一样,log里也没有任何问题。请问,这是为什么?难道是新版SAS的规则变了吗?