Strange Copy Command Problem
Posted: 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:
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
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
nextThoughts?
Thanks,
BL