Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: re: Running Stat/Transfer from Stata Command ?


From   "Ray, Bryan" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: RE: re: Running Stat/Transfer from Stata Command ?
Date   Wed, 3 Mar 2004 09:55:03 -0500

A quick comment on the use of the winexec procedure to call Stat-Transfer.

When this is done, be aware that Stat-Transfer runs outside of Stata.
Because of this, Stata and Stat-Transfer run simultaneously, not necessarily
sequentially. The implication of this is that a Stata program may use the
output of the Stat-Transfer as a input, but Stat-Transfer might not have
finished running by the time that Stata is looking for the input. The only
way that I found to avoid a problem is to pause Stata. 

Does anybody have any other thoughts?

Bryan

-----Original Message-----
From: Nick Cox [mailto:[email protected]]
Sent: Sunday, February 29, 2004 12:03 PM
To: [email protected]
Subject: st: RE: re: Running Stat/Transfer from Stata Command ?


. findit stat-transfer 

points to Roger Newson's -stcmd- on SSC. 

Nick 
[email protected] 

Ian Watson
 
> Ha Thai Son <[email protected]> asked:
> 
> HTS> I'm using Stata 8 and Stat/Stransfer 6. Any one help me to run
> HTS> Stat/Stransfer from Stata Command to transfer, for exp. 
> I want to transfer
> HTS> C:\Data\data.xls to C:\Data\data.dta.
> 
> Try the following steps (under a Windows platform).
> 
> 1. create a textfile called data.stc with the following lines:
> 
> copy data.xls data.dta /y /o
> exit
> 
> (Note that the /y replaces without asking, in case you need to run it
> several times and the /o optimises the storage. Also leave out exit if
> you want to watch to see what happens, then manually manually close
> the window.)
> 
> 
> 2. from inside Stata run the following command:
> 
> 
> winexec "c:\program files\stattransfer5\st" c:\data\data.stc
> 
> (Set your path to stat transfer as appropriate).

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


_________________________________________________________________ 

This e-mail and any attachments may be confidential or legally privileged.
If you received this message in error or are not the intended recipient, you
should destroy the e-mail message and any attachments or copies, and you are
prohibited from retaining, distributing, disclosing or using any information
contained herein. Please inform us of the erroneous delivery by return
e-mail. 

Thank you for your cooperation. 
_________________________________________________________________ 


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index