I'm just writing an ado file doing data mangement tasks which generates two new variables. For different reasons the active data file has to be saved inbetween, which is done using tempfile, in order to make no changes at the users' data and environment. Because of this, the active dataset has tempfile names and save locations at the end of my ado file. But I want it to have the same name as it had when the user applied the ado file (much the same as if she had used the "generate"-command. I do not want to implement a "save"-command into the program, because I do not know if the user made changes before applying the ado file which are not to be saved under the original file name.
I just want the data set to have the same name as before executing the ado file, leaving it to the user to save or not to save.
I did not find any hint in the documentation or with findit or google how this might be done. Did I just overlook a stata command or option? Has someone an idea how this could be done?
I just want the data set to have the same name as before executing the ado file, leaving it to the user to save or not to save.
I did not find any hint in the documentation or with findit or google how this might be done. Did I just overlook a stata command or option? Has someone an idea how this could be done?
Comment