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

st: help with inputst

From   Ricardo Ovaldia <[email protected]>
To   [email protected]
Subject   st: help with inputst
Date   Thu, 20 Dec 2007 09:29:40 -0800 (PST)

Dear all,

I have several data files in text format that I want
to convert into Stata datasets using stat/transfer.

I created a macro containing the text data file names
and try to use -foreach- and -inputst- to read the
data but it keeps giving me errors. It appears that
stat/transfer can not understand the local macro.

Here is my code:

local files MRecord-I-080907 MRecord-I-013107
MRecord-I-020807 MRecord-I-021507 MRecord-I-030807

foreach fname in `files' {
        inputst "C:\statawrk\MAPMISS\`fname'.txt"
	save `fname'.dta, replace

. qui {
Stat/Transfer did not run successfully
file not found

end of do-file

Thank you,

Ricardo Ovaldia, MS
Oklahoma City, OK

Never miss a thing.  Make Yahoo your home page.

*   For searches and help try:

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