Page 1 of 1

Simple Renaming Script Help

Posted: Mon Dec 19, 2016 7:59 pm
by JimForest
Hello, Hoping someone can help me with a question.

I want to rename series in workfile pages with a script, as I have series with the same names in each page but I want to differentiate between them in a combined worksheet.

For example, I want to create the following strings- prefix1, prefix2, etc...

string prefix1="30_"
string prefix2="OTR"

then I want to run the sc
rename oldname "prefix1"+"prefix2"+oldname

so if the old name of the series was "Bond", it would create the series 30_OTR_Bond

Can someone tell me what I am doing incorrectly? I appreciate your help...

Re: Simple Renaming Script Help

Posted: Mon Dec 19, 2016 10:14 pm
by EViews Gareth

Code: Select all

%newname = prefix1+prefix2+oldname rename {oldname} {%newname}

Re: Simple Renaming Script Help

Posted: Mon Dec 19, 2016 11:17 pm
by JimForest
Thank you Gareth!!!

Ali was not the greatest...Gareth is the GREATEST!!!

Float like a butterfly, sting like a bee!!!

You are the best. Happy Holidays!!! :D :D :D