Quiz:
Understanding
DATA Step Processing
Select the best answer for each question and click Score My Quiz.
-
Which of the following is not
created during the compilation phase?
-
During the compilation phase,
SAS software scans each statement in the DATA step, looking for syntax
errors. Which of the following is not considered
a syntax error?
-
Unless otherwise directed, the
DATA step executes . . .
-
At the beginning of the execution
phase, the value of
_N_ is 1, the value of _ERROR_
is 0, and the value of the remaining variables is set to:
-
Suppose you run a program that
causes three DATA step errors. What is the value of the automatic
variable
_ERROR_ ?
-
At the end of the DATA step, three
actions occur. The first two are:
- The values in the program data vector are written to the data
set as an observation.
- Control returns to the top of the DATA step.
What is the third action?
-
Look carefully at the DATA step
shown below. Based on the INPUT statement, in what order will the
variables be stored in the new data set?
data perm.update;
infile invent;
input IDnum $ 15-19 Item $ 1-13 InStock 21-22
BackOrd 24-25;
Total=instock+backord;
run;
-
If SAS software cannot interpret
syntax errors . . .
-
What is wrong with this program?
data perm.update;
infile invent
input Item $ 1-13 IDnum $ 15-19 InStock 21-22
BackOrd 24-25;
Total=instock+backord;
run;
-
Look carefully at this section
of a SAS session log. Based on the note, what was the most likely
problem with the DATA step?
NOTE: Invalid data for IDnum in line 7 15-19.
RULE: ----+----1----+----2----+----3----+----4
7 Bird Feeder LG088 3 20
Item=Bird Feeder IDnum=. InStock=3 BackOrd=20
Total=23 _ERROR_=1 _N_=1
|
|