Introduction to SAS Flashcards

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?

A

No.

21
Q

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

A

Yes.

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
Q

What does the datalines keyword specify?

A

The values entered after it are the data values that are going to be entered into the SAS dataset.

26
Q

What is the exception to the rule of adding a semicolon to every line ending?

A

When you are adding data values to a dataset.

27
Q

What is the line “Data student_details;” doing at the top of a code block?

A

Creating a new dataset called “student_details”

28
Q

what is “input student_id student_name$” doing?

A

Creating a new numerical variable “student_id” and a new character variable “student_name”

29
Q

What are the dataset/ variable name rules?

A
  • 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
Q

What is a new dataset stored in if you don’t specify a library name?

A

It is stored in the temporary WORK library. Otherwise need to specify:
example: Data libref.dataset_name;

31
Q

What does this do?
Proc print data=sas_lib.student_details;
run;

A

Gives a print view of the dataset student_details in the sas_lib library.

32
Q

What is SAS?

A

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
Q

Which software is at the core of the SAS system?

A

Base SAS software.

34
Q

What are the 3 components of Base SAS software?

A
  1. A data management facility
  2. A programming language
  3. Data analysis and reporting utilities.
35
Q

What is each separate piece of information called in SAS?

A

A data value.

36
Q

What is an assignment statement?

A

It assigns data to a variable.

37
Q

What is a step boundary (such as a semicolon)?

A

It tells SAS that the preceding statements are ready for execution.

38
Q

What does an observation contain?

A

All the data values for an entity.

39
Q

What does a variable contain?

A

The same type of data values for all entities.

40
Q

What elements does the SAS language contain?

A

Statements, expressions, functions and CALL routines, options, formats and informats.

41
Q

Can you split a word between two lines?

A

No.

42
Q

When does SAS remember initial letter cases?

A

For presentation purposes (to represent the variable name when printing it.)

43
Q

What is SAS procedures?

A

A library of built-in programs. It uses data values from SAS data sets to produce preprogrammed reports.

44
Q

What does the TABULATE keyword do?

A

It computes values such as mean

45
Q

example tabulate proc set

A

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
Q

What happens if you omit “data=” in a proc statement?

A

The procedure uses the SAS data set that was most recently created in the program.

47
Q

What does a RUN statement do?

A

It tells SAS that the preceding group of statements are ready for execution.