Home
Explore
Exams
Search for anything
Login
Get started
Home
W2 V2
W2 V2
0.0
(0)
Rate it
View linked note
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Card Sorting
1/9
There's no tags or description
Looks like no tags are added yet.
Study Analytics
All
Learn
Practice Test
Matching
Spaced Repetition
Name
Mastery
Learn
Test
Matching
Spaced
No study sessions yet.
10 Terms
View all (10)
Star these 10
1
New cards
What is the command used to input data in SAS for a dataset with a specified character length?
The command is 'input,' followed by the variable name and its character length (e.g., name $9.).
2
New cards
What does the 'datalines' statement do in a SAS data step?
The 'datalines' statement indicates the beginning of inline data entry for the dataset.
3
New cards
What format is used to read date values in a specific format in SAS?
The format is 'mmddyy8.', which reads dates in month-day-year format up to eight characters.
4
New cards
How do you ensure a character string is read correctly without truncation in SAS data input?
Use the '$CHAR' modifier to specify the exact character length for the variable.
5
New cards
What is the purpose of the '@' symbol in SAS data input?
The '@' symbol tells SAS to hold the current line for further input operations instead of reading a new line.
6
New cards
In the context of SAS, what does 'proc print' do?
The 'proc print' command is used to display the contents of a dataset.
7
New cards
How can you change the display format of a date variable in SAS?
Use the 'format' statement followed by the variable name and desired date format (e.g., 'format gameday DATE9.;').
8
New cards
What happens if you try to use a decimal place for a whole number in SAS?
SAS may not read the number correctly if the decimal is unnecessary, especially for whole numbers.
9
New cards
What command would you use to suppress the observation numbers when printing a dataset in SAS?
Use the option 'NOOBS' in the 'proc print' command.
10
New cards
How to print only a specific observation from a dataset in SAS?
Use the 'OBS=n' option in the 'proc print' command to specify which observation to print.