Failing to Export data from workfile to excel with dates
Posted: Mon Nov 10, 2014 5:43 am
Hi Team,
I am trying to export a time series data (GDP) from a workfile to an excel. I am using the command wfsave so that I can get the data replaced in an existing excel named "output" in a specific worksheet and specific rows/column. Although, the numbers are getting printed but the corresponding dates are not getting printed.
Command:
wfsave(t=excelxml, mode=update) outputq range="Sheet1!D3" byrow @keep gdp @smpl 2014q1 2015q1
Result in excel:
_date_ 41548 41640 41730 41821 41913 42005
gdp 15916.2 15831.7 16010.4 16150.6 16208.90359 16318.7675
Here instead of 2014q1, it is showing a number 41548. Similarly, for 2014q2 its showing 41640. How can I get the dates mentioned in the first row? Please help
regards, RM
I am trying to export a time series data (GDP) from a workfile to an excel. I am using the command wfsave so that I can get the data replaced in an existing excel named "output" in a specific worksheet and specific rows/column. Although, the numbers are getting printed but the corresponding dates are not getting printed.
Command:
wfsave(t=excelxml, mode=update) outputq range="Sheet1!D3" byrow @keep gdp @smpl 2014q1 2015q1
Result in excel:
_date_ 41548 41640 41730 41821 41913 42005
gdp 15916.2 15831.7 16010.4 16150.6 16208.90359 16318.7675
Here instead of 2014q1, it is showing a number 41548. Similarly, for 2014q2 its showing 41640. How can I get the dates mentioned in the first row? Please help
regards, RM