文档介绍:following SAS program is submitted:
data ;
set ;
by Department Gender;
if First$;
else if Month='MAR' then input Week1 Week2 Week3 Week4 Week5 Status $; format Week1-Week5 dollar6.;
run;
proc print data=;
run;
D.
data ;
length Name $ 4 Month $ 3 Status $ 7;
infile '' dsd @;
input Name $ Month $;
if Month='FEB' then input Week1 Week2 Week3 Week4 Status $;
else if Month='MAR' then input Week1 Week2 Week3 Week4 Week5 Status $; format Week1-Week5 dollar6.;
run;
proc print data=;
run;
Answer: C
-------------------------------------
Excel workbook contains the following four worksheets:
EAST
WEST
NORTH
SOUTH
The following program is submitted:
libname MYXLS '';
Which PROC PRINT step correctly displays the NORTH worksheet?
A. proc print data=;run;
B. proc print data=$;run;
C. proc print data=MYXLS.'NORTH'e;run;
D. proc print data=MYXLS.'NORTH$'n;run;
Answer: D
-------------------------------------
following SAS program is submitted:
data ;
Day="01" ;
Yr=1960 ;
X=mdy(Day,01,Yr) ;
run;
What is the value of the variable X?
A. the numeric value 0
B. the character value "01011960"
C. a missing value due to syntax errors
D. the step will not compile because of the character argument in the mdy function.
Answer: A
-------------------------------------
statement specifies that records 1 through 10 are to be read from the raw data file ?
A. infile '' 1-10;
B. input '' ******@10;
C. infile '' obs=10;
D. input '' stop=10;
Answer: C
-------------------------------------
a SAS program is submitted, the following is written to the SAS log:
data ;
set WOR