-
What is the default storage length for SAS numeric variables (in bytes)?
8
-
Which of the following is not a valid SAS name?
A. GradePct
B. Grade Pct
C. grade_pct
D. _gradepct
- B. Grade Pct
- (spaces not allowed in names)
-
T/F: All SAS statements must end in a semicolon
True
-
On a table, are observations in rows or in columns?
rows
-
On a table, are variables in rows or in columns?
columns
-
How many observations and variable does the data set below contain?
B. 4 Observations, 3 Variables
-
Which of the following are true regarding SAS names?
B. All of these answers
-
How must a SAS name begin?
With a letter or an underscore
-
What is the range of character length for a SAS name?
Between 1 and 32 Characters
-
Which code statement is correct?
A. proc print data=Veg
run;
B. proc print data=Veg
run
C. proc print data=Veg;
run;
D. proc print data=Veg
run
- C. proc print data=Veg;
- run;
-
What types of variables does SAS datasets have?
A. Character and Numeric
-
Which of the following is true regarding SAS Statements?
B. A SAS statement can begin in any column
-
T/F: SAS is a tool for processing and analyzing data
True
-
T/F: A Datastep can be used to manage data, read in data, modify values, and create variables
True
-
T/F: A Proc step never produces charts or graphs in the Results screen
False
-
What is SAS?
- * A tool for processing and analyzing data.
- * A language with structure analogous to spoken language
-
The three major parts that SAS code can be broken down into:
- - SAS names
- - SAS statements
- - SAS Steps (Data and Proc)
-
SAS Data Sets only have two variable types:
character and numeric
-
How do SAS statements begin?
- With a SAS keyword
- (example: option, title, data input, proc, var)
-
T/F: You can combine a Proc step within a Data step and vice-versa
False
-
How do all SAS Steps end?
With a run statement
run;
-
How are data steps used?
They are used to manage data (read in data, modify values, create variables)
-
What are proc statements and how are they used?
Proc statements are pre-written routines that allow us to analyze the data contained in a SAS data set
|
|