What happens when character value is compared to numeric value?

Document ID : KB000011989
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

What happens when character value is compared to numeric value?

Answer:

If one element is character and the other element in a SAS statement is numeric, SAS converts the numeric element to character for the comparison. There are messages in the SAS Log that indicate the conversion.  The job completes with zero return code.