Question 30: The following SAS program is submitted:

 data work.retail;

 cost = '20000';

 total = .10 * cost;

 run;

 Which one of the following is the value of the variable TOTAL in the output data set?

  1. 2000
  2. Get all Questions and Answer from here
  3. You need to have paid subscription to access all questions
  4. Thanks for considering SAS Certification Material

 Correct Answer : 1

 Exp : to an extent, SAS automatically converts character to numeric. Even though cost is character due to automatic conversion here we are getting 2000

 Because the character value is automaticaly converted to numberic by SAS.

 Here's the log results

 "NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column)"

 cost is automatically converted to numeric.

You can access to full explanation to question and answer from this page.