Podcast
Questions and Answers
A dollar sign ($) on an INPUT statement in SAS means that:
A dollar sign ($) on an INPUT statement in SAS means that:
- the variable has some missing values.
- the variable has only numeric values.
- the unit of measurement is dollars.
- the variable may have character values. (correct)
Which of the following statements is true about SAS?
Which of the following statements is true about SAS?
- It is primarily used for web development.
- It is a programming language used for statistical analysis. (correct)
- It is only compatible with Windows operating systems.
- It is primarily used for graphic design.
The DBMS keyword in importing external files is used to
The DBMS keyword in importing external files is used to
- To include variable names from the first row of data.Â
- To import a specific sheet from an excel workbook.
- To specify the type of data to import. (correct)
- To overwrite an existing SAS data set.
Which keyword is used to specify path where data file is saved?
Which keyword is used to specify path where data file is saved?
Which of the following is a SAS syntax requirement?
Which of the following is a SAS syntax requirement?
In the following code snippet, Which dataset is considered the input
dataset?
Data a;
Set b;
Run;
In the following code snippet, Which dataset is considered the input
dataset? Data a; Set b; Run;
In the following code snippet, Which dataset is considered the output dataset?
Data a;
Set b;
Run;
In the following code snippet, Which dataset is considered the output dataset? Data a; Set b; Run;
Which of the following is not a valid type of library in SAS?
Which of the following is not a valid type of library in SAS?
What is the primary purpose of the SET statement in SAS?
What is the primary purpose of the SET statement in SAS?
What is the primary purpose of the Data statement in SAS?
What is the primary purpose of the Data statement in SAS?
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.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.