Quiz:
Creating
Multiple Observations from a Single Record
Select the best answer for each question and click Score My Quiz.
-
The double trailing at sign (@@) ...
-
A record held by an @ is automatically
released when
-
Which SAS program correctly creates
a separate observation for each block of data?
1---+----10---+----20---+----30---+----40---+ |
1001 apple 1002 banana 1003 cherry |
1004 guava 1005 kiwi 1006 papaya |
1007 pineapple 1008 raspberry 1009 strawberry |
-
Which SAS program segment reads
the values for
ID and holds the record for each value
of Quantity, so that three observations are created for
each record?
1---+----10---+----20---+----30 |
2101 21,208 19,047 22,890 |
2102 18,775 20,214 22,654 |
2103 19,763 22,927 21,862 |
- Which SAS statement repetitively
executes several statements when the value of an index-variable named
count ranges from 1 to 50, incremented by 5?
-
Which choice below writes an observation
to the data set after each value for
Activity has been
read?
-
Which SAS statement repetitively
executes several statements while the value of
Cholesterol
is greater than 200?
-
Which choice below is an example
of a sum statement?
-
Which program creates a counter
variable named
Month that is incremented by 1 each time
the loop executes?
-
How many observations are produced
by this external file?
1---+----10---+----20---+----30---+----40 |
01 CHOCOLATE VANILLA RASPBERRY |
02 VANILLA PEACH |
03 CHOCOLATE |
04 RASPBERRY PEACH CHOCOLATE |
05 STRAWBERRY VANILLA CHOCOLATE |
data perm.choices;
infile icecream missover;
input ID 2. Flavor : $10. @;
do while (flavor ne ' ');
output;
input Flavor : $10. @;
end;
run;
|