The following SAS program is submitted:
data stats;
set revenue;
array weekly{5} mon tue wed thu fri;
<insert DO statement here> total = weekly{i} * .25; output;
end;
run;
Which one of the following DO statements completes the program and processes the elements of the WEEKLY array?
A. do weekly{i} = 1 to 5;
B. do i = 1 to 5;
C. A DO loop cannot be used because the variables referenced do not end in a digit.
D. do i = mon tue wed thu fri;
data stats;
set revenue;
array weekly{5} mon tue wed thu fri;
<insert DO statement here> total = weekly{i} * .25; output;
end;
run;
Which one of the following DO statements completes the program and processes the elements of the WEEKLY array?
A. do weekly{i} = 1 to 5;
B. do i = 1 to 5;
C. A DO loop cannot be used because the variables referenced do not end in a digit.
D. do i = mon tue wed thu fri;
No comments:
Post a Comment