Problem Adding Variables to Group
Posted: Fri Oct 04, 2013 11:44 am
I'm generating a series that is a combination of other series for a number of variables. However, when I run the program with the code, it only generates the variable for the very last item in the loop command and adds that to the group I'm trying to create. What I have coded is below. What am I doing wrong with the code?
For example, what would happen to me here is that I'd open up the group "_Tenth" and only see the variable BHR_NED_CAE in the group.
Code: Select all
for %i USA AFG ALB ALG ANG AGL ANT ARG ARM ARU AUST ASTR AZE BAHA BHR
'CREATE DUMP GROUP
Group _Tenth
'****NED_CAE
genr {%i}_NED_CAE = ({%i}_TD)/ ({%i}_EXP + {%i}_SER)
group _TENTH.add {%i}_NED_CAE
next