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

st: RE: sequential file conversion possible ?


From   "David Harrison" <[email protected]>
To   <[email protected]>
Subject   st: RE: sequential file conversion possible ?
Date   Thu, 7 Apr 2005 14:27:33 +0100

Get Roger Newson's -stcmd- command from SSC

findit stcmd

The problem is then simple...

forvalues y=1983/2004 {
	stcmd mat`y'.xls mat`y'.dta
}

Hope this helps

David

-----Original Message-----
From: Katsuhide Isa [mailto:[email protected]]
Sent: 07 April 2005 14:12
To: Statalist
Subject: st: sequential file conversion possible ?


Dear Statalisters,

I have multiple (more than 20) Excel-format files, named like
mat1983.xls, mat1984.xls etc.
And I'd like to convert them into Stata-format ones using
StatTransfer. But it is tedious to do so one by one.
So, I wonder if it is possible to convert them sequentially
and automatically from within Stata (using a script file
if necessary).
# I'm having StatTransfer 7 at hand.

Any suggestions welcome.
Thanks in advance.

K.I.
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index