Exporting Entire Database to Excel file
Posted: Thu Jun 22, 2023 3:33 pm
Hello,
I have an Eviews database that contains data series in a few different frequencies. I would like to export the entirety of this database into Excel files based on the frequency. For example, 3 output files for Annual, Quarterly, Monthly.
I am thinking the best way to do this would be to have an if/else statement checking the frequency attributes before adding the series to separate groups in preparation for export. However, I am having issues checking the frequency. First and foremost, is this the right approach?
I am unable to use this syntax to find the frequency of a series in a database (not defined or illegal command):
%frequency_string = DATABASE_NAME::SERIES_NAME.@attr("Freq")
However bringing the series into a workfile first also won't work since the frequency attribute of any series added to a workfile will automatically be changed to the frequency of that workfile as well (even if unstructured).
Thank you for taking the time to look into this. It is much appreciated.
PS - I could PROC -> copy the database to Aremos TSD text file and read that way, but this chops off descriptions that are too long and this is undesirable. Is there a similar function that would fully retain the attributes of the series?
I have an Eviews database that contains data series in a few different frequencies. I would like to export the entirety of this database into Excel files based on the frequency. For example, 3 output files for Annual, Quarterly, Monthly.
I am thinking the best way to do this would be to have an if/else statement checking the frequency attributes before adding the series to separate groups in preparation for export. However, I am having issues checking the frequency. First and foremost, is this the right approach?
I am unable to use this syntax to find the frequency of a series in a database (not defined or illegal command):
%frequency_string = DATABASE_NAME::SERIES_NAME.@attr("Freq")
However bringing the series into a workfile first also won't work since the frequency attribute of any series added to a workfile will automatically be changed to the frequency of that workfile as well (even if unstructured).
Thank you for taking the time to look into this. It is much appreciated.
PS - I could PROC -> copy the database to Aremos TSD text file and read that way, but this chops off descriptions that are too long and this is undesirable. Is there a similar function that would fully retain the attributes of the series?