Thanks for all responses, -preserve- and -restore- did the trick! Also
thanks to Dan for pointing out the SAS/Stata transition guide -
curious about -saswrapper- now.
Frederic
On Mon, Mar 16, 2009 at 5:35 AM, Martin Weiss <[email protected]> wrote:
> <>
>
> Have you had a look at -tempfile-? Also note that you can start a second, third... instance of Stata...
>
> HTH
> Martin
> -------- Original-Nachricht --------
>> Datum: Sun, 15 Mar 2009 18:49:40 -0400
>> Von: postkarte <[email protected]>
>> An: [email protected]
>> Betreff: st: do-file on dataset not currently used by Stata
>
>> Dear statalist,
>>
>> Is it possible to execute a do-file or several commands on another
>> dataset than Stata is currently using?
>>
>> I came across this problem when working with two datasets (auxiliary
>> and main), where the auxiliary serves to create variables at several
>> levels of aggregation and then transfers the variables into separate
>> files, that are subsequently matched on a one-to-many basis with the
>> main dataset. Instead of running the auxiliary and its resulting
>> datasets in several windows and then switching to the main dataset for
>> the merge commands, it would be very nice if the auxiliary dataset
>> commands could be controlloed from the main dataset window, as a sort
>> of "meta"-Stata. This is no problem in SAS, but I could not figure out
>> if this can also be done in Stata?
>>
>> Many thanks for your suggestions,
>>
>> Frederic
>> *
>> * For searches and help try:
>> * http://www.stata.com/help.cgi?search
>> * http://www.stata.com/support/statalist/faq
>> * http://www.ats.ucla.edu/stat/stata/
>
> --
> Martin Weiss
> Hackersteigle 3
> 72076 Tübingen
> 00497071/793535
> 00491784597218
>
> Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/