Automize object aliases in Eviews databases
Posted: Mon Oct 14, 2013 7:51 am
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)
Otherwise, another possibility would be to directly manipulate the OBALIAS.ini file outside Eviews.
Thank you in advance for your assistance.
Best regards
Rasmus
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
Thank you in advance for your assistance.
Best regards
Rasmus