Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

SAS 1. Which of the following is FALSE regarding SAS data libraries? a. SAS data

ID: 3727170 • Letter: S

Question

SAS

1. Which of the following is FALSE regarding SAS data libraries?

a. SAS data sets saved in the WORK library are saved at the end of every SAS session.

b. The WORK library is the default SAS library.

c. Library names must be 8 characters or fewer.

d. A two-level data set name can be used to access data sets stored in libraries other than the default SAS library.

2. Which of the following symbol(s) is used in the INPUT statement to tell SAS that an observation continues on to the next line?

a. : (a colon)

b. / (a forward slash)

c. ; (a semi-colon)

d. @@ (double at signs)

3. Which of the following SAS programs would NOT create a SAS data set consisting only of observations with the variable color equal to red?

a. DATA favorites (WHERE=(color='red'));

SET class;

RUN;

b. DATA favorites;

SET class;

IF color = 'red';

RUN;

c. All of these programs create a SAS data set consisting only of observations where color is equal to red.

d. PROC PRINT DATA=class;

WHERE color='red';

RUN;

4. Which of the following is a numeric informat in SAS?

a. ANYDTDTE10.

b. 5.2

a. SAS data sets saved in the WORK library are saved at the end of every SAS session.

b. The WORK library is the default SAS library.

c. Library names must be 8 characters or fewer.

d. A two-level data set name can be used to access data sets stored in libraries other than the default SAS library.

Explanation / Answer

1.a

(SAS data sets saved in the WORK library are saved at the end of every SAS session.)

2.b

/(a forward slash).

advances the pointer to column 1 of the next input record.

3.c

All of these programs create a SAS data set consisting only of observations where color is equal to red.

4.b

The Syntax for a numeric informat is:

So 5.2 is numeric informat in SAS