Quiz:
Editing
and Debugging SAS Programs
Select the best answer for each question and click Score My Quiz.
-
In the Program Editor window,
you can include
-
Suppose you submit a short, simple
DATA step. If the active window displays the message "DATA step
running" for a long time, what probably happened?
-
What happens if you submit the
following program?
proc sort data=clinic.stress out=maxrates;
by maxhr;
run;
proc print data=maxrates label double noobs;
label rechr='Recovery Heart Rate;
var resthr maxhr rechr date;
where tolerance='I' and resthr>90;
sum fee;
run;
-
What type of error does the following
program contain?
proc tabulate data=maxrates;
class tolerance;
var resthr maxhr rechr date
table tolerance, minhr maxhr rechr;
table tolerance*timeminutes;
run;
-
Suppose you submit the DATA step
below. Then you submit the PROC step. To edit the DATA step, what
should you do?
data sasuser.mynewdata;
merge data1 data2 data3;
by id;
run;
proc print data=mysales;
var date salesrep total commission;
run;
-
How can you tell whether you have
specified an invalid option in a SAS program?
-
Which of the following programs
contains a syntax error?
-
What should you do about the mistake
in the following program?
proc print data=mysales;
where state='NC;
run;
-
To insert lines in a SAS program,
you can use
-
Which type of error occurs when
the form of the elements in a SAS statement is correct, but the elements
are not valid for that usage?
|