Chapter Quiz 5
Chapter Quiz 5
Chapter Quiz 5
1. Suppose you have submitted a SAS program that contains spelling errors. Which set of steps
should you perform, in the order shown, to revise and resubmit the program?
a. • Correct the errors. • Clear the SAS log. • Resubmit the program. • Check the Output window.
• Check the SAS log.
b. • Correct the errors. • Resubmit the program. • Check the Output window.
c. • Correct the errors. • Clear the SAS log. • Resubmit the program. • Check the Output window.
d. • Correct the errors. • Clear the Outputwindow. • Resubmit the program. • Check the Output
window.
by maxhr;
run;
c. A SAS log message indicates that an option is not valid or not recognized.
d. A SAS log message might indicate that a quoted string has become too long or that the
statement is ambiguous.
b. SAS continues to process the step, and the SAS log displays messages about the error.
c. SAS stops processing the step in which the error occurred, and the SAS log displays messages
about the error.
d. SAS stops processing the step in which the error occurred, and the Output window displays
messages about the error.
a. Some data values are not appropriate for the SAS statements that are specified in a program.
5. How can you tell whether you have specified an invalid option in a SAS program?
b. A SAS log message indicates that an option is not valid or not recognized.
c. You cannot tell until you view the output from the program.
by region;
run;
b. data=work.mysales;
set cert.sales17;
where sales<5000;
run;
run;
d. none of the above.
7. What are the temporary variables that can be helpful when debugging a DATA step?
a. OBS
b. _N_
c. _ERROR_
d. b and c only
8. When the source of the errors in the program is not apparent, which statement or statements
can you use to examine errors and print messages to the log?
a. PUTLOG statement
b. PUT statement
c. VAR statement
d. a and b only
9. What types of errors can the PUTLOG statement help you resolve?
a. syntax errors
b. semantic errors