167Data Step Functions
Output from Program 9.13:
Using INPUT function to convert character values to uppercase
Obs comments new_comments
1 pounding; complains often POUNDING; COMPLAINS OFTEN
2 sleep OK SLEEP OK
3 Booming; complains often BOOMING; COMPLAINS OFTEN
4 Pounding POUNDING
5 Boom BOOM
9.4.2 The PUT Function
SAS can also perform automatic numeric-to-character conversion as
illustrated in Program 9.7 where values for PHONE1 and PHONE2 are
converted to character strings during the concatenation operation. Similar
to the automatic character-to-numeric conversion, SAS will also issue a
message in the log when automatic numeric-to-character conversion
occurs.
Automatic numeric-to-character conversion occurs when a numeric val