SAS Programs:
data work.profit;
infile sales;
input Year 1-4 Expenses 6-10 Revenue 12-16;
run;
proc means data=work.profit;
run;
proc print data=work.profit;
run;
proc sort data=work.profit;
by year;
run;
Question 1:
How many DATA steps does the program below contain?
A one
B three
C four
大家可以思考下,下面给答案。
Answer 1:
A Correct---This program contains only one DATA step.
B Incorrect---This program contains three steps of one type,but they are not DATA steps,every DATA step begains with the keyword DATA.
C Incorrect---This program contains four steps,but not all of them are DATA steps.Remember,every DATA step begains with the keyword DATA.
Question 2:
How many PROC steps does the program below contain?
A one
B two
C three
思考下,答案来了。。。。
Answer 2:
A Incorrect---Remember that every PROC step begins with the keyword PROC.
B Incorrect---Remember that every PROC step begins with the keyword PROC.
C Correct---The program contains three PROC steps.