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

st: Re: openning an SPSS file

From   Roger Newson <[email protected]>
To   [email protected]
Subject   st: Re: openning an SPSS file
Date   Wed, 15 Oct 2003 19:42:52 +0100

At 10:33 15/10/03 -0700, Ashley Fenzl wrote:
This seems like it would be an easy task, however I cannot find the answer on how to do it anywhere. Could someone please tell me how to open an SPSS file in Stata? Thank you. I appreciate the help!
I presume that Ashley has no access to StatTransfer, DBMS/Copy or other data conversion software. (This is the thing to use if possible. StatTransfer, in particular, can be called from within Stata using the -stcmd- package, distributed with StatTransfer or alternatively downloadable from SSC.)

If you type -findit spss- in Web-aware Stata, then Stata will inform you of the UCLA web page

which advises the user to use SPSS to write the data to a text file file using the menu sequence

File->Save as...

and then to input the text file into Stata using the -insheet- command. This will convert the variable names and values, but not the variable labels, value labels and formats. (To convert those, you need data conversion software.)

I hope this helps.


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]

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

* For searches and help try:

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