Strange Copy Command Problem

For questions regarding programming in the EViews programming language.

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

blonggovnl
Posts: 16
Joined: Thu Aug 22, 2013 7:45 am

Strange Copy Command Problem

Postby blonggovnl » Wed Oct 02, 2013 11:05 am

Hi,

I'm trying to copy some series from one wf to another, renaming each series as I do so. Here's my code:

Code: Select all

for %s %scen h high m medium l low for %school school1 school2 school3 school4 school5 school6 wfuse {%school}\{%scen} copy(overwrite) {%school}::{%scen}\g6_{%s} elemtotal::{%scen}\g6_{%s}_{%school} save elemtotal close {%school} next genr g6_{%s}=g6_{%s}_school1+g6_{%s}_school2+g6_{%s}_school3+g6_{%s}_school4+g6_{%s}_school5+g6_{%s}_school6 next
For reasons that are lost on me (I've used this loop before and it was fine) this loop renames all the "school" workfiles to "elemtotal"!

Thoughts?

Thanks,

BL

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

Re: Strange Copy Command Problem

Postby EViews Gareth » Wed Oct 02, 2013 1:41 pm

You have the command:

Code: Select all

save elemtotal
which saves the current workfile under the name "elemtotal".


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests