From: Itz ME on
Dear SAS Users,

Can you please anyone give some suggestion/tips to get a solution for below.

I have a dataset for example

a b frmla
----------------------------------------------------
10 5 a+b
40 10 a/b
30 20 sum(a,b)


I want to get the output as follows



a b frmla new_var
----------------------------------------------------------------------------
10 5 a+b 15
40 10 a/b 4
30 20 sum(a,b) 50


"frmla" is a variable which contains formula which is a valid SAS statement
and i need to apply that formula and get the value for "new_var"

Is there any way i can achieve this?

Thank you!!