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

st: Re: help with inputst

From   Ricardo Ovaldia <>
Subject   st: Re: help with inputst
Date   Thu, 20 Dec 2007 09:50:56 -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

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.
*   For searches and help try:

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