Select the best answer
for each question. Check your answers using the answer key in the
appendix.
-
Suppose you do not specify
the LIBRARY= option and your formats are stored in Work.Formats. How
long do they exist?
-
only for the current
procedure
-
only for the current
DATA step
-
only for the current
SAS session
-
-
Which of the following
statements store your formats in a permanent catalog?
-
libname library 'c:sasformatslib';
proc format lib=library
...;
-
libname library 'c:sasformatslib';
format lib=library
...;
-
library='c:sasformatslib';
proc format library
...;
-
library='c:sasformatslib';
proc library
...;
-
When you create a format
with the VALUE statement, recall that the new format's name
cannot end with a number, cannot end with a period, and cannot be
the name of a SAS format. Which of the following is also true?
-
The name cannot be the
name of a data set variable.
-
The name must be at
least two characters long.
-
The name must be at
least eight characters long.
-
The name must begin
with a dollar sign ($) if used with a character variable.
-
Which of the following
FORMAT procedures is written correctly?
-
proc format lib=library
value colorfmt;
1='Red'
2='Green'
3='Blue'
run;
-
proc format lib=library;
value colorfmt
1='Red'
2='Green'
3='Blue';
run;
-
proc format lib=library;
value colorfmt;
1='Red'
2='Green'
3='Blue'
run;
-
proc format lib=library;
value colorfmt
1='Red';
2='Green';
3='Blue';
run;
-
Which of these statements
is false regarding what the ranges in the VALUE statement can specify?
-
They can specify a single
value, such as 24 or 'S
'.
-
a range of numeric values,
such as 0-1500.
-
a range of character
values, such as 'A
'-'M
'.
-
a list of numeric and
character values separated by commas, such as 90,'B
',
180,'D
',270.
-
How many characters
can be used in a label?
-
Which keyword can be
used to label missing numeric values as well as any values that are
not specified in a range?
-
You can place the FORMAT
statement in either a DATA step or a PROC step. What happens when
you place it in a DATA step?
-
You temporarily associate
the formats with variables.
-
You permanently associate
the formats with variables.
-
You replace the original
data with the format labels.
-
You make the formats
available to other data sets.
-
Suppose the format JOBFMT
was created in a FORMAT procedure. Which FORMAT statement applies
it to the variable JobTitle in the program output?
-
-
-
-
format jobtitle='jobfmt';
-
Which keyword, when
added to the PROC FORMAT statement, displays all the formats in your
catalog?