Page 1 of 1

Automize object aliases in Eviews databases

Posted: Mon Oct 14, 2013 7:51 am
by rousing
Hi
Is it possible to automize the setting of object aliases in Eviews databases in a .prg?
Assume I have two text objects in a workfile containing the database tickers and the associated aliases (a_tickers and a_aliases)

Code: Select all

'text a_tickers 'text a_aliases !n_tickers=a_tickers.@linecount for !k=1 to !n_tickers %tickers=a_tickers.@line(!k) %alias=a_aliases.@line(!k) copy DB1::{%tickers} DB2::{%tickers} 'command to set alias name %alias for ticker k in the database DB2 next
Otherwise, another possibility would be to directly manipulate the OBALIAS.ini file outside Eviews.

Thank you in advance for your assistance.

Best regards
Rasmus

Re: Automize object aliases in Eviews databases

Posted: Mon Oct 14, 2013 10:29 am
by EViews Gareth
Can't be done, other than modifying the .ini.

Re: Automize object aliases in Eviews databases

Posted: Mon Oct 14, 2013 11:33 am
by rousing
Thanks for the prompt reply, will work on the direct .ini solution instead :)