Question 7: After opening SAS in a new session, the following program is submitted:
1 2 3 4 5 6 7
data sashelp.demo; set sashelp.snacks; if _N_ > 10; run; proc print data= demo noobs; run;
The data set Sashelp.Snacks contains 6 variables and 100 observations. Which one of the following answers explains what happens when this code is submitted?
a. The SAS data set Demo does not exist and no report is generated . b. The SAS data set Demo has no observations. c. The PRINT procedure statement syntax is incorrect and no report is generated. d. The PRINT procedure statement syntax is correct and a report is generated.
*This blog is not affiliated with SAS or the SAS Institute. All answer logs, data sets, output, and commentary are provided by this blog.