convert character data to numeric data
Convert character to numeric. To convert character values to numeric values, use the INPUT function. new_variable = input(original_variable, informat.); The informat tells SAS how to interpret the data in the original character variable. For example, if you have a simple string of digits like 12345678, you can use the basic numeric informat w.d: