i looked at the previous links related to the topic and tried using the commands but it is showing error. i have a variable var1 = census tract 244.1 which is in character format of length 25. i need a final variable which will contain only the number 244.1 and the format should be numeric
i used the following commands: newvar = input (var1, 8.) but it showed error mentioning it as an invalid argument to function INPUT.
i also used: newvar = input (var1, best32.) but again the same error message as above.
i tried to remove the word 'census tract' word using: TRACT =tranwrd(var1, "Census Tract", ''); the message said that var1 is defined both as character and numeric variable
i have run out of option. so need help. i'm using sas 9.3