Quiz:
Formatting
Variable Values
Select the best answer for each question and click Score My Quiz.
-
Which format displays the value
5349.41 as $5,349.41?
- When you place a FORMAT statement
in a procedure step, the formats that are associated with the variables
remain in effect
-
What is the effect of the format
statement shown below?
data work.aprbills;
set perm.aprbills;
RoomChg=days*roomrate;
format roomchg 8.2;
run;
-
Consider the program shown below.
If the variable
RoomChg includes a value of 1250,
how will that value appear in the PROC PRINT output?
data work.aprbills;
set perm.aprbills;
RoomChg=days*roomrate;
format roomchg 8.2;
run;
proc print data=work.aprbills;
format roomchg dollar6.;
run;
- When you permanently associate a format
with a variable, the format
-
Which of the following statements
will store your formats in a permanent catalog?
-
When creating a format with the
VALUE statement, the new format's name
- cannot end with a number
- cannot end with a period
- cannot be the name of a SAS format, and
- Which of these is not
true? Ranges in the VALUE statement can specify
-
Which keyword addresses missing
values in a range?
-
The format JobFmt was created
in a FORMAT procedure. Which FORMAT statement will apply it to the
variable
JobTitle in program output?
|