Multiple choice technology programming languages

What is the use of PUT function in a DATA step?

  1. converts character to numeric

  2. onverts numeric to character

  3. writes the values to the output file

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The PUT function converts numeric values to character values. It takes a numeric source and returns a character string representation, which is essential when you need to perform string operations on numbers or assign numbers to character variables. Option B correctly describes this.