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

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


From   Ian Watson <[email protected]>
To   statalist <[email protected]>
Subject   st: re: Running Stat/Transfer from Stata Command ?
Date   Sun, 29 Feb 2004 08:22:17 +1100

Dear Statalist,

Ha Thai Son <[email protected]> asked:

HTS> Dear Stata-listers,

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.

HTS> Many thanks in advance.

HTS> Ha Thai Son
HTS> NIMPE Hanoi, Vietnam

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).


-- 
Kind regards,
 Ian                          

=====================
Ian Watson
Senior Researcher
acirrt
University of Sydney
NSW 2006
Australia
======================






*
*   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