The following SAS program is submitted:
data work.retail;
cost = ‘20000’;
total= .10* cost
run;
What is the result?
A. The value of the variable TOTAL in the output data set is 2000. No messages are written to the SAS log.
B. The value of the variable TOTAL in the output data set is 2000. A note that conversion has taken place is written to the SAS log.
C. The value of the variable TOTAL in the output data set is missing. An error message is written to the SAS log.
D. The variable TOTAL in the output data set has no value. The program fails to execute due to a syntax error.
Correct ans is D, as semicolon is missing in total statement. if semicolon is there then ans will be B.