‎2008 Apr 28 8:37 AM
Hi All,
I want to perform a dynamic arithmetic calculation, for example, There are 4 variables :
Var1 = L * B.
L = 5
B = 5.
Var2 = Var1. (Here Var2 should get a value of 25)
How to achieve this.
Thanks & Regards,
Navneeth K.
‎2008 Apr 28 8:51 AM
Dear,
With in the loop or what can you mention mit specific about this so that i can.
Regards,
Madan.
‎2008 Apr 28 8:55 AM
Chk the following sample code:
it is not in netween any loop,
data:
l type c value 5,
b type c value 5,
f(10) type c,
formula(10) type c value 'l * b.'.
replace first occurence of 'l' in formula with l.
replace first occurence of 'b' in formula with b.
f = formula.
I want this operation to be performed and F value must be 25.
‎2008 Apr 28 9:00 AM
You have to use dynamic code generation. INSERT REPORT or GENERATE SUBROUTINE POOL
matt
‎2008 Apr 28 9:45 AM