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

RE: st: RE: Inputting arbitrary text files into Stata datasets


From   Roger Newson <[email protected]>
To   [email protected]
Subject   RE: st: RE: Inputting arbitrary text files into Stata datasets
Date   Thu, 17 Oct 2002 17:39:30 +0100

At 16:28 17/10/02 +0100, Nick Cox wrote:

Stata at the lowest level reads in everything it receives
from anywhere, the user plus -- commands,
data, whatever -- byte by byte.

The Stata that we mortals interact with interprets our
commands, fine except for this one small fraction
(who knows? 0.001%?) of Stata usage.
The point I was making is that it is mathematically impossible to devise a pair of quote strings to go around arbitrary strings (because arbitrary strings may include an unmated right quote string). Statistically, a pair of quotes may go around most of the strings encountered, most of the time. However, if Stata is going to use use macros routinely to store arbitrary strings (as in the -file- command), then there should be some way of accessing their contents which does not require quote strings.

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]

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