Page 1 of 1

Create Multiple Series

Posted: Thu Aug 13, 2015 3:15 am
by Redwing153
Hello,

I have a string object sername which contains numerous series names.
e.g.
UKX
ASX
MCX

I would like to write a program which uses the sername object and loops through the series names to create new series
e.g.
UKX_new
ASX_new
MCX_new

etc.

I know it's a simple question but I am completely failing to loop through my string object.
Can some-one help please?

Re: Create Multiple Series

Posted: Thu Aug 13, 2015 7:50 am
by EViews Gareth
How is the string object delimited?

Re: Create Multiple Series

Posted: Thu Aug 13, 2015 9:15 am
by Redwing153
With spaces.
I think this works, actually:

Code: Select all

for %i {stringobj} series {%i}_new next

Re: Create Multiple Series

Posted: Thu Aug 13, 2015 9:31 am
by EViews Gareth
Yep.