QUESTION NO: 34
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?
A. LOCALFEE has format of 9. and COUNTRYFEE has a format of 7.
B. LOCALFEE has format of 9. and COUNTRYFEE has a format of percent6.
C. LOCALFEE has format of percent6. and COUNTRYFEE has a format of percent6.
D. The data step fails execution; there is no format for LOCALFEE
Answer: C
Solution :
data 를 불러오고 set 하기전에 format 을 해주었기 때문에 적용이 된다
#IT #먹방 #전자기기 #일상
#개발 #일상