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   "Joao Pedro W. de Azevedo" <[email protected]>
To   <[email protected]>
Subject   st: Re: Running Stat/Transfer from Stata Command ?
Date   Fri, 26 Mar 2004 14:47:37 -0000

Hello,
I'm trying to use the stcmd in order to transfer a data set to Limdep.
I've tryied the different syntaxes below with no success. A blue window
rapidly pops-up, but no files are created.
Any help will be much appreciated.
Cheers,
JP

stcmd d:\data\entrep.dta  d:\data\entrep.lpj 
stcmd d:\data\entrep.dta  d:\data\entrep.lpj /o /s
outputst c:\data\entrep.lpj



-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Roger Newson
Sent: Sunday, February 29, 2004 2:20 PM
To: [email protected]
Subject: st: Re: Running Stat/Transfer from Stata Command ?


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/

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