Base SAS Interview Questions You'll Most Likely Be Asked
Base SAS Interview Questions You'll Most Likely Be Asked
Interview Questions
Review these typical interview questions and think about how you would
answer them. Read the answers listed; you will find best possible answers
along with strategies and suggestions.
This page is intentionally left blank
Chapter 1
Basics
3: You might be already familiar with the Data Set. What is the
descriptor portion of the Data Set?
Answer:
Descriptor portion of the Data Set contains information about the
Data Set like name of the Data Set, date and time when it was
created, number of observation, number of variables and a ribute
information for each variable in the Data Set.
5: How does SAS recognise the end of a step and execute the
previous step?
Answer:
Whenever SAS encounters a DATA, PROC, RUN or QUIT
statement, SAS executes the previous step.
Referencing Files
12: Describe some ways to view the contents of SAS Data Set.
Answer:
There are three ways for viewing the contents of a SAS Data Set-
PROCCONTENTS, PROC Data Sets and opening the libraries
folder in the explored window.
Example: To view the contents of a Data Set stored in
the following programs can be used.
proc contents data=exam.questionset2;
run;
OR
proc datasets;
contents data=exam.questionset2;
quit;
14: How do you modify SAS system options like page number,
time etc?
Answer:
OPTIONS STATEMENT can be submi ed to modify system
options.
In the following example an OPTIONS statement is submi ed to
change the following options- date and PAGENO. Since the option
is set to NODATE, SAS displays no date in the output. Also, in the
output, the numbering of the page starts from 3 since PAGENO
option is set to 3.
options nodate pageno=3;
proc contents data=exam.questionset2 varnum;
run;
SAS Programs
25: Suppose after submi ing a SAS program you see the
What
does that indicate and how do you resolve the issue?
Answer:
This indicates that there is a syntax error. The error is that the data
step which is submi ed does not have a RUN statement. So, the
data step does not execute and hence this message appears on the
top of active window.
This can be resolved by submi ing a RUN statement to complete
the data step.
26: How do you specify comments in SAS?
Answer:
There are two ways of specifying comment statements
* this is a comment;
Or
/* this is another comment*/