Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Importing variable and value labels from txt file


From   "Martin Weiss" <martin.weiss@uni-tuebingen.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Importing variable and value labels from txt file
Date   Tue, 20 May 2008 14:57:50 +0200

Try 

********
use auto, clear
cap erase las.do
la save using las
type las.do
********


for a flavor of what it should look like (make sure there is no las.do in
your current directory before running the code...). Also note that -ssc d
descsave- is extremely convenient for such purposes.

Martin Weiss
_________________________________________________________________

Diplom-Kaufmann Martin Weiss
Mohlstrasse 36
Room 415
72074 Tuebingen
Germany

Fon: 0049-7071-2978184

Home: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1130

Publications: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1131

SSRN: http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=669945


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Guillermo Villa
Sent: Tuesday, May 20, 2008 2:29 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: Importing variable and value labels from txt file

Dear Statalisters,

I would like to know whether, for an active dataset, Stata is able to
attach value and/or variable labels from an existing txt file. In that
case, how should that text file be structured and which Stata commands
should be used?

Thanks.

Guillermo
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index