The example below uses the input statement to read a value from a source (in this case the string 123
) into a both a character destination and a numeric destination.
data test;
source = '123';
numeric_destination = input(source, best.);
character_destination = input(source, $3.);
run;