The following SAS program is submitted:
proc format;
value score
value score
1 - 50 = 'Fail'
51 - 100 = 'Pass';
run;
51 - 100 = 'Pass';
run;
proc report data = work.courses nowd;
column exam;
define exam / display format = score.;
run;
column exam;
define exam / display format = score.;
run;
The variable EXAM has a value of 50.5.
How will the EXAM variable value be displayed in the REPORT procedure output?
A. Fail
B. Pass
C. 50.5
D. . (missing numeric value)
A. Fail
B. Pass
C. 50.5
D. . (missing numeric value)
3 comments:
Answer: C
Values from 50 to 51 are not covered in the proc format range.
then why isnt it D?
Kat, because nothing happens to 50.5. When a format does not apply to a value, the value remains the same.
Post a Comment