SAS Base Programming for SAS 9 — Question 17

The SAS data set BANKS is listed below:

BANKS -
name rate

FirstCapital 0.0718 -

DirectBank 0.0721 -

VirtualDirect 0.0728 -
The following SAS program is submitted:
data newbank;
do year = 1 to 3;
set banks;
capital + 5000;
end;
run;
Which one of the following represents how many observations and variables will exist in the SAS data set NEWBANK?

Answer options

Correct answer: B

Explanation

The program iterates through the BANKS data set three times, which leads to a single observation in NEWBANK where 'capital' accumulates the value from each iteration. This results in 1 observation and 4 variables: 'year', 'name', 'rate', and 'capital'. The other options are incorrect as they do not accurately reflect the structure of the resulting data set.