Sorry. Respond it so late.
But not see what your data look like and what your output look like.
Is your contract duration numeric variable?
It seems to be a format problem.
But I am not sure whether the following is what you need.
[pre]
proc format;
invalue pricefmt
0 = 5
12,24= 0;
run;
..................
price_two = input(contract_duration_value,pricfmt.);
format price_two dollar4.;
[/pre]
Ksharp
... View more