SAS Base Certification – Practice Exam 8

Question 8: Assume that TEMPLIB.NEW does not exist and that the following SAS program is submitted at the beginning of a new SAS session:

1
2
3
4
5
data templib.new;
   name='jack';
   age=27;
   output new;
run;

What is the result?

Options:

a.	The data set TEMPLIB.NEW is created with 2 variables and 3 observations .
b.	The data set TEMPLIB.NEW is created with 2 variables and 0 observations.
c.	The DATA step does not execute.
d.	The data set TEMPLIB.NEW is created with 2 variables and 1 observation.

*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

1 Comment

    Kanagaraju Natesan Feb 09, 2017

    1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
    61
    62 data templib.new;
    63 name=’jack’;
    64 age=27;
    65 output new;
    ___
    455
    ERROR 455-185: Data set was not specified on the DATA statement.

    66 run;

    ERROR: Libref TEMPLIB is not assigned.
    NOTE: The SAS System stopped processing this step because of errors.
    NOTE: DATA statement used (Total process time):
    real time 0.00 seconds
    cpu time 0.01 seconds

    67
    68 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
    81

    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.