🎴 Flashcard Mode

SAS Programming Fundamentals

Card1 / 17
Mastered0
Review0
QuestionClick to flip

data new; x = '1000'; y= x * .10; run; What is the result?

AnswerClick to flip back
A
y = 100 and a NOTE is written in the SAS log saying that character value has been converted to numeric value
💡 Explanation:

In SAS, when a character value is used in a numeric context (like multiplication), SAS automatically converts it to numeric. The character '1000' becomes 1000, and 1000 * 0.10 = 100. SAS always writes a NOTE to the log when automatic character-to-numeric conversion occurs.

Change Mode