Introduction to SAS Flashcards

(47 cards)

1
Q

What is the Project Tree?

A

It displays the Process Flow.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the Process Flow?

A

A graphical representation of the project.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the log window?

A

It displays errors, warning and notes on execution of codes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the result window?

A

The window where results are displayed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the server list?

A

A list of the physical folders and files on the system/server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are libraries in the SAS context?

A

Collections of SAS datasets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the two types of SAS libraries?

A

Permanent libraries and temporary libraries.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a permanent library?

A

Datasets in a permanent library are available for use across sessions and are saved permanently.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a temporary library?

A

Datasets in a temporary library are deleted on closing a SAS session.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the name of the only temporary library?

A

WORK

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you create a user-defined permanent library?

A

Using a LIBNAME statement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are rows called in a SAS data file?

A

Observations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are columns called in a SAS data file?

A

Variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a data step used for?

A

Creating and manipulating datasets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a proc step used for?

A

Generating reports.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does every code block begin with?

A

DATA or PROC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What does every line of SAS code begin with?

A

A SAS keyword

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What does every line of SAS code end with?

A

A semicolon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What does a code block end with?

A

A RUN or QUIT statement

20
Q

Is SAS code case sensitive?

21
Q

Can SAS code be written across different lines or multiple statements in a single line?

22
Q

Data Step example

A
Data student_details;
input student_id student_name$ course$;
datalines;
101 Arpita SAS
102 Shashi SAS
103 Raj Excel
104 Sagar SQL
105 Preeti Excel
;
RUN
23
Q

What are the two basic data types in SAS?

A

Character and Numeric.

24
Q

How do you specify a character value?

A

Add a dollar sign at the end of a variable names.

25
What does the datalines keyword specify?
The values entered after it are the data values that are going to be entered into the SAS dataset.
26
What is the exception to the rule of adding a semicolon to every line ending?
When you are adding data values to a dataset.
27
What is the line "Data student_details;" doing at the top of a code block?
Creating a new dataset called "student_details"
28
what is "input student_id student_name$" doing?
Creating a new numerical variable "student_id" and a new character variable "student_name"
29
What are the dataset/ variable name rules?
- Can be a combination of numeric and character values. - Can't have a special character, except an underscore - Length of dataset/ variable name cannot be more than 32 characters. - Name cannot begin with a numeric value.
30
What is a new dataset stored in if you don't specify a library name?
It is stored in the temporary WORK library. Otherwise need to specify: example: Data libref.dataset_name;
31
What does this do? Proc print data=sas_lib.student_details; run;
Gives a print view of the dataset student_details in the sas_lib library.
32
What is SAS?
An integrated system of software solutions that enables you to perform the following tasks: - Data entry, retrieval and management. - Report writing and graphics design. - Statistical and mathematical analyses. - Business forecasting and decision support. - Operations research and project management. - Application development.
33
Which software is at the core of the SAS system?
Base SAS software.
34
What are the 3 components of Base SAS software?
1. A data management facility 2. A programming language 3. Data analysis and reporting utilities.
35
What is each separate piece of information called in SAS?
A data value.
36
What is an assignment statement?
It assigns data to a variable.
37
What is a step boundary (such as a semicolon)?
It tells SAS that the preceding statements are ready for execution.
38
What does an observation contain?
All the data values for an entity.
39
What does a variable contain?
The same type of data values for all entities.
40
What elements does the SAS language contain?
Statements, expressions, functions and CALL routines, options, formats and informats.
41
Can you split a word between two lines?
No.
42
When does SAS remember initial letter cases?
For presentation purposes (to represent the variable name when printing it.)
43
What is SAS procedures?
A library of built-in programs. It uses data values from SAS data sets to produce preprogrammed reports.
44
What does the TABULATE keyword do?
It computes values such as mean
45
example tabulate proc set
proc tabulate data=weight_club; class team; var StartWeight EndWeight Loss; table team, mean*(StartWeight EndWeight Loss); title 'Mean Starting Weight, Ending Weight,'; title2 'and Weight Loss'; run;
46
What happens if you omit "data=" in a proc statement?
The procedure uses the SAS data set that was most recently created in the program.
47
What does a RUN statement do?
It tells SAS that the preceding group of statements are ready for execution.