[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: Problem with new version of Stat-transfer

From   "Newson, Roger B" <>
To   "''" <>
Subject   st: RE: Problem with new version of Stat-transfer
Date   Wed, 2 Dec 2009 14:57:25 +0000

Presumably, you are transferring from a text format into Stata. Stata (and most other statistical software to the best of my knowledge) does not allow variable names to start with numbers, only with letters or underscores. Therefore, if you want Stat/Transfer to preserve your variable names when transferring to Stata, then you must make these variable names legal Stata names before the transfer.

I hope this helps.

Best wishes


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

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

-----Original Message-----
From: [] On Behalf Of Ricardo Ovaldia
Sent: 02 December 2009 14:50
Subject: st: Problem with new version of Stat-transfer

Dear _all

I have a Stata program write under Stata's version 9 that uses stat-transfer's "st.exe" to read an ever increasing number of text data files.

I recently upgrated to Stat/tranfer 10, and when I ran my program it broke.
Stat/transfer rename my variables. For example it changed:
1_1_SubjectID  to  a_1_SubjectID
1_2_Reviewer  to  a_2_Reviewer
and so on.

How do I get Stat/transfer to respect my variable names? and why does it change them?

Thank you,
Ricardo Ovaldia, MS
Oklahoma City, OK

*   For searches and help try:

*   For searches and help try:

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