Store Variables Names and loop through them

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

tzra
Posts: 1
Joined: Tue Mar 24, 2015 4:15 am

Store Variables Names and loop through them

Postby tzra » Tue Mar 24, 2015 4:20 am

Hi there, I am relatively new to EViews and I have a general program that I want to run for different series that I import from Excel. I would like to store the variables names so I can use the preexisting, generic code (which refers to variables as ser01, ser02 and so on) and later on rename the variables. How would you recommend that I do this?
Thank you!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Store Variables Names and loop through them

Postby EViews Gareth » Tue Mar 24, 2015 8:12 am

I would re-write the generic code so that it doesn't rely on set variable names. Use program variables (%a, %b, so on) instead.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest