SAS P1 L2a Flashcards

1
Q

What kind of steps in SAS programs? (2)

A

SAS program = sequence of steps
Each performs test
2 kinds: data, proc

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

What does a data step do?

A

Data step reads data from input source,
Processes it
Makes SAS data set

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

Primary purpose of data step?

A

To make SAS data set

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

What is a variable in SAS?

A

SAS variable = column in data

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

What does a proc step do?

What does it generate?

A

Proc step:
processes SAS data set
generates reports, graph, manage data, sort

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

SAS program path

A

Raw data => data step => SAS data file => proc step => report

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

What are steps, in SAS program?
what is a step?
how tell where step start/end?
compilation?

A

SAS program: sequence of steps
step - comprised of sequence of statements
Each step has beginning and end boundary => step boundaries
Each step compiles and executes independently based on step boundaries

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

How does data step start?

A

data step - starts with data statement

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

How does proc step start?

A

proc step - starts with proc statement

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

How does step end? Best practice?

A

End = RUN, QUIT, or beginning of another step

Best practice to include RUN or QUIT

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

What is a global statement?

A

Global statement: works on more than one step

Example: TITLE

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

SAS statement:
begins with?
ends with?

A

SAS statements
begin with identifying KEY WORD
always end with “;” (semicolon)

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

Best practice / conventional formatting?

A

Data Proc Run - in column 1
other statements indented
each statement begins on new line
blank line separates each step

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

Benefits of conventional formatting? Required?

A

Benefits - easy to read

Not required - can free format, will still work

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