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   Roger Newson <[email protected]>
To   [email protected]
Subject   st: Re: Running Stat/Transfer from Stata Command ?
Date   Sun, 29 Feb 2004 14:20:03 +0000

At 20:09 28/02/04 +0700, Ha Thai Son wrote:
Dear Stata-listers,

I'm using Stata 8 and Stat/Stransfer 6. Any one help me to run
Stat/Stransfer from Stata Command to transfer, for exp. I want to transfer
C:\Data\data.xls to C:\Data\data.dta.
Use the -stcmd- package, downloadable from SSC. The -stcmd- package contains 3 programs, -stcmd-, -inputst- and -outputst-. If you install the -stcmd- package, and type in Stata

stcmd c:\data\data.xls c:\data\data.dta /o /y

then StatTransfer will copy c:\data\data.xls to c:\data\data.dta. Alternatively, you can type

inputst c:\data\data.xls

and StatTransfer will copy c:\data\data.xls into the memory. You can then type

save c:\data\data.dta, replace

and Stata will save the data in memory to the disk file c:\data\data.xls c:\data\data.dta.

I hope this helps.

Best wishes

Roger


--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]
Website: http://www.kcl-phs.org.uk/rogernewson

Opinions expressed are those of the author, not the institution.

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