Automize object aliases in Eviews databases

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

rousing
Posts: 77
Joined: Fri Jun 11, 2010 5:56 am
Location: Switzerland

Automize object aliases in Eviews databases

Postby rousing » 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)

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Automize object aliases in Eviews databases

Postby EViews Gareth » Mon Oct 14, 2013 10:29 am

Can't be done, other than modifying the .ini.

rousing
Posts: 77
Joined: Fri Jun 11, 2010 5:56 am
Location: Switzerland

Re: Automize object aliases in Eviews databases

Postby rousing » Mon Oct 14, 2013 11:33 am

Thanks for the prompt reply, will work on the direct .ini solution instead :)


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests