Hi
I have a program that runs creates a workfile, and I would like to be able to just save everything I do everyday and start fresh the next day. Is there a way to name the workfile using today's date automatically (i.e. without the save as and typing in the date)?
Thanks!
Putting the data in a workfile create line of code
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
miorinnovo
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Putting the data in a workfile create line of code
Code: Select all
%filename = "workfile_" + @strnow("YYYY-MM-DD")
wfsave %filename
-
miorinnovo
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Re: Putting the data in a workfile create line of code
Thanks!
Here's a follow up. I had it saving to a specific location before, but it doesn't do that anymore. Do you know how to make that tweak so it saves in a location of my choosing?
I was using:
Here's a follow up. I had it saving to a specific location before, but it doesn't do that anymore. Do you know how to make that tweak so it saves in a location of my choosing?
I was using:
Code: Select all
create(page=annual) r:\\Eviewsfiles\Eviews a 1981 2018 -
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Putting the data in a workfile create line of code
Code: Select all
%filename = "r:\EViewsfiles\EViews\workfile_" + @strnow("YYYY-MM-DD")
wfsave %filename
-
miorinnovo
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Re: Putting the data in a workfile create line of code
That's awesome, thanks again.
By the way, is there a way to get a similar type of automated naming from the prg file when I save it?
By the way, is there a way to get a similar type of automated naming from the prg file when I save it?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
-
miorinnovo
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Re: Putting the data in a workfile create line of code
Ok thanks gareth.
Who is online
Users browsing this forum: No registered users and 2 guests
