Error: No; Dataset in Memory Has Changed Since Last Saved
use {filename}
no; dataset in memory has changed since last saved

I am just beginning to learn Stata and now facing the above issue. I am trying to open >2 different datafiles in one do-file and the error appeared. Is there a way to solve this? I have saved both datasets in the same working directory so the path should be right.

1 Answer

You need to clear before you can use a new dataset that hasn't been saved.

If the datasets need to be joined, that is a task for append or merge. If they are separate, you can't open them at the same time. You could open two instances of Stata.

So, a deeper answer depends on what the datasets are and why you want to look at them at the same time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest