The code you have shown is but a piece of a SAS statement. So I have to assume that the context in which you are using it is correct. This would be the replacement code for a variable that is defined as character with a length of 20:
sum(input(dollar_value, dollar20.))
... View more