Page 1 of 1

Replacing code automatically

Posted: Fri Mar 06, 2015 2:00 pm
by miorinnovo
Is there a command that will replace code in an Eviews program? I plan on creating a few programs that will do a lot of the same things to the variables. So rather than copying and pasting the new variable name into each line of relevant code it would be nice to work from a template and add a line that says replace x with new_variable name.

Thanks in advance for any tips.

Re: Replacing code automatically

Posted: Fri Mar 06, 2015 4:01 pm
by EViews Gareth
Read through the programming chapter of the Command and Programming reference, paying particular attention to replacement variables, for-loops and subroutines.