I am trying to convert a character variable to a numeric variable using the input statement. It is the first line of my code after importing my data and running proc contents. However, when I use the code below, the 'input' does not turn blue, and nothing changes in my log or resulting proc contents when I run the code. *change character variable to numeric; data work.dtgdata1; set library.dtgdata; hiv_years = input(hivyears, $3.); run; 'Input' will turn blue if it is written at the beginning of a line of code, but not after an equal sign, and I'm not sure what other methods to use to create a numeric variable. If someone could offer some insight about this I would appreciate it!
... View more