Timestamping databases
Posted: Mon May 27, 2019 3:15 pm
Hi,
Another day, another eviews questions....
This time would like to save a timestamped back up of a database. I've found some advise on the forum and are working with the following piece of code:
%date=@strnow("yyyy-mm-dd")
dbcopy database\data database\timestamps\db_{%date}
This code is suppose to save a copy of the database named "data" with a new name "db_today's date" (where "today's date" is in the yyyy-mm-dd formate and change with the calendar) in the subfolder timestamps.
However, I get the error message "%DATE is not a valid string or scalar name", can anyone help me?
As always, many thanks in advance.
Cheers,
Joachim
Another day, another eviews questions....
This time would like to save a timestamped back up of a database. I've found some advise on the forum and are working with the following piece of code:
%date=@strnow("yyyy-mm-dd")
dbcopy database\data database\timestamps\db_{%date}
This code is suppose to save a copy of the database named "data" with a new name "db_today's date" (where "today's date" is in the yyyy-mm-dd formate and change with the calendar) in the subfolder timestamps.
However, I get the error message "%DATE is not a valid string or scalar name", can anyone help me?
As always, many thanks in advance.
Cheers,
Joachim