Hello,

it seems as if the commands preserve and restore don't function properly when they're executed via do file. If to be more precise, they do work well when they are run together on the same execution. Yet, if I already have a full script over which I want to go through by executing it line by line, then the problem occurs: The "preserve" is being executed normally, but then when I hit "restore", Stata replies an error that "there is nothing to restore".

Is it a known issue? Any way to overcome it?

Thank you in advance,
Ben