Page 1 of 1

saving workfile under name with today's date (@strnow)

Posted: Fri Oct 16, 2015 6:48 am
by evuga
I tried to put a command that saves the actual workfile under a name containing today's date, e.g. wf_2015-10-16 and tried it with the @strnow and a string variable. But it returns an error message.

Command:

Code: Select all

%date=@strnow("yyyy-mm-dd") wfsave(2) wf_%date
Error message is:
Unable to open file \\user.me\wf_"2015-10-16".wf1 in "WFSAVE(2) WF_"2015-10-16"".

What would be the solution or is there another way to save the file under that name?
Many thanks in advance.

Re: saving workfile under name with today's date (@strnow)

Posted: Fri Oct 16, 2015 8:01 am
by EViews Gareth

Code: Select all

%date=@strnow("yyyy-mm-dd") wfsave(2) wf_{%date}

Re: saving workfile under name with today's date (@strnow)

Posted: Fri Oct 16, 2015 8:32 am
by evuga
Yes, sure. I somehow lost sight of it. Thanks.