SAS_Institute
A00-211 · Question #8
The data set RALESTATE has the variable LOCALFEE with a format or 9. and a variable COUNTRYFEE with a format or 7.; The following SAS program is submitted: data history; format local fee country fee…
The correct answer is C. LOCALFEE has format of percent6. and COUNTRYFEE has a format of percent6. See the full explanation below for the reasoning.
Question
The data set RALESTATE has the variable LOCALFEE with a format or 9. and a variable COUNTRYFEE with a format or 7.; The following SAS program is submitted:
data history; format local fee country fee percent6.; set realestate; local fee = local fee / 100; country fee = country fee / 100; run; What are the formats of the variables LOCALFEE and COUNTRYFEE in the output dataset?
Options
- ALOCALFEE has format of 9. and COUNTRYFEE has a format of 7.
- BLOCALFEE has format of 9. and COUNTRYFEE has a format of percent6.
- CLOCALFEE has format of percent6. and COUNTRYFEE has a format of percent6.
- DThe data step fails execution; there is no format for LOCALFEE
How the community answered
(54 responses)- A6% (3)
- B4% (2)
- C80% (43)
- D11% (6)
Community Discussion
No community discussion yet for this question.