SAS P1 L3a Flashcards

1
Q

What is an SAS library?

A

SAS library:

  • collection of 1 or more files recognized by SAS
  • referenced and stored as unit
  • highest level of organization of info in SAS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

SAS library organization level?

A

highest level of organization of info in SAS

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

file relationship to library?

A

each file is a “member” of a library

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

Minimum provision of libraries in session of SAS?

A

at beginning of each session, SAS provides

  • at least one temporary library
  • at least one permanent library
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Give example of temp library

A

WORK is a temporary library

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

What happens to data in temporary library during session or at end of session?

A

Can store and access data sets for duration of session,

but all flushed when session ends

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

What happens to data in permanent library during session or at end of session?

A

Can store and access data sets for duration of session,

data sets in permanent library kept after session ends

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

Give examples of permanent libraries

A
SASHelp = perm library, has sample data sets to use
SASUser = another perm library
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a libref?

A

libref = library reference name

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

What does a libref reference?

A

libref references particular physical location
recognized by operating system
libref = shortcut to that physical location

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

how are librefs implemented?

A

libref implementation corresponds to how operating system stores files.
In Windows, libref usually refers to group of files stored in same folder or directory.

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

What is the difference between a 1 and 2 level data set name?

A
  • All SAS data sets have a 2 level name, consisting of libref.data-set-name; (separated by period)
  • Datasets in temporary work library can have 1 level name (omit “WORK.” )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What if there is only a 1 level name?

A

SAS assumes it is in the WORK library
=> WORK is the default library
(and is temporary)

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

What type of name does permanent library need to have?

A

Permanent library must have 2 level name.

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