Adding a time stamp to an exported group

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

arthur.ray.craig
Posts: 2
Joined: Mon Nov 19, 2012 11:27 am

Adding a time stamp to an exported group

Postby arthur.ray.craig » Wed Jan 30, 2013 2:49 pm

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!

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

Re: Adding a time stamp to an exported group

Postby EViews Gareth » Wed Jan 30, 2013 3:14 pm

Create an alpha series containing the date/time stamp, then add it to the group before saving.

Code: Select all

alpha time = @datestr(@now)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests