SAS Base Certification – Practice Exam 7

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?

Options:

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.

Correct Answer

Incorrect Answer

Click to see Answer Explanation below

thanks for your support

3 Comments

    Raj Mar 18, 2015

    Here in this case it shows the sashelp.demo dataset is created. But isn’t sashelp is always read only library?

    Reply
      Bhandwerk Jun 18, 2015

      work is the default library

      Reply
    Suchi Jan 09, 2016

    Here in the comment it says sashelp.demo dataset is created. which is wrong explanation Please give us correct one

    Reply

Leave a Comment

Please keep in mind that comments are moderated and rel="nofollow" is in use. So, please do not use a spammy keyword or a domain as your name, or it will be deleted. Let us have a personal and meaningful conversation instead.