Hi Ron. Thanks for your answer, but that is too much for what I had in mind. I like the input(resolve(cats('%sysevalf(',equation,')')),32.); from the other user. I've read some of your books by the way, like 20 years ago.
... View more
Thanks. Something like this is what I was interested in. I don't have anything against macros or macro variables. I want the formulas to be values in a dataset variable, not in a macro variable. I was just wondering about a unit conversion dataset I was recently looking at. Some of the factors may be truncated decimals from the division of two numbers where the decimals go on to infinity. I was wondering if instead of specifying the truncated result, to just put in the formula and have sas figure out what it resolves to.
... View more
thanks, but I was curious to know if there is an easier way than that. Something specifically designed to resolve all manner of arithmetic formulas that could be in a character variable. Some one function like the input function. Also something not involving macros.
... View more
I was curious to know if there is some sas function that can convert a value of a character variable ("1/3"), to a numeric variable (.333333...). This would save me the trouble of parsing out the different parts of "1/3" into intermediate variables to then use conditional statements to do the calculation. It would be nice if input("1/3",8.) would give you .33333
... View more