The following SAS program is submitted:
data work.retail;
cost = 20000;
total= .10* cost
run;
What is the result?
The following SAS program is submitted:
data work.retail;
cost = 20000;
total= .10* cost
run;
What is the result?
In the given SAS code, there is a syntax error because a semicolon is missing after the assignment of the variable 'total' ('.10 * cost'). This prevents the program from executing successfully. As a result, the variable 'TOTAL' in the output data set will not have a value, and the program will fail to execute. The correct answer is that the program fails to execute due to a syntax error.
the answer for this question should be D? I run the code. there is no output if the semiconlon is missed before run.
quotation mark of 20000 is missed if it is B.
also, a semicolon is missed after the assignment of total.