Page 1 of 1

Adding a time stamp to an exported group

Posted: Wed Jan 30, 2013 2:49 pm
by arthur.ray.craig
I am creating a group that contains all of the solved values from a model and then exporting the object to Excel. We've had some problems with version control. I want to start including time and date stamps in the objects. Can I do this using the EViews programming language? This is the code I am using to export the group.

Code: Select all

wfsave(type=excel)"S:\Research\model_outputs.xls" @keep model_outputs
I know that I can use @time and @date to return a string with the time and date. Can I use these commands to add a time and date stamp to the group object and the exported group?

Thanks!

Re: Adding a time stamp to an exported group

Posted: Wed Jan 30, 2013 3:14 pm
by EViews Gareth
Create an alpha series containing the date/time stamp, then add it to the group before saving.

Code: Select all

alpha time = @datestr(@now)