error: 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.

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.

ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJobmtqaGx%2Fd4COnqmrp6Jiu7B5w5qrmquVqXqquoymnKanoq56qa3SZpqhmZ6csqV50qKlnJ1doa60wIysmK%2BdlA%3D%3D

 Share!