10 Questions
A dollar sign ($) on an INPUT statement in SAS means that:
the variable may have character values.
Which of the following statements is true about SAS?
It is a programming language used for statistical analysis.
The DBMS keyword in importing external files is used to
To specify the type of data to import.
Which keyword is used to specify path where data file is saved?
INFILE
Which of the following is a SAS syntax requirement?
End each statement with a semicolon.
In the following code snippet, Which dataset is considered the input
dataset? Data a; Set b; Run;
b
In the following code snippet, Which dataset is considered the output dataset? Data a; Set b; Run;
a
Which of the following is not a valid type of library in SAS?
System library
What is the primary purpose of the SET statement in SAS?
To read data from existing datasets
What is the primary purpose of the Data statement in SAS?
To define the beginning of the data step.
Study Notes
SAS Basics
- A dollar sign ($) on an INPUT statement in SAS is used to specify the informat for numeric data.
Importing External Files
- The DBMS keyword is used to import external files.
Specifying File Paths
- The PATH keyword is used to specify the path where the data file is saved.
SAS Syntax Requirements
- A semicolon (;) is a SAS syntax requirement.
Understanding Data Steps
Data Step Example 1
- In the code snippet
Data a; Set b; Run;
, datasetb
is considered the input dataset.
Data Step Example 2
- In the code snippet
Data a; Set b; Run;
, dataseta
is considered the output dataset.
Library Types
- There is no such thing as a "permanent" library in SAS. Libraries can be either temporary (WORK) or permanent ( LIBNAME).
SET Statement
- The primary purpose of the SET statement in SAS is to read in existing data.
DATA Statement
- The primary purpose of the Data statement in SAS is to define a new dataset.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free