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

st: RE: inputst can't find file

From   "Newson, Roger B" <[email protected]>
To   <[email protected]>
Subject   st: RE: inputst can't find file
Date   Fri, 15 Aug 2008 20:28:57 +0100

I think your setting of the global macro StatTransfer_path should be

"C:\Program Files\StatTransfer9\st.exe"

instead of simply

"C:\Program Files\StatTransfer9"

because StatTransfer_path should include the name of the executable
file, as well as its folder. (I wrote stcmd that way in case there were
operating environments where the Stat/Transfer executable had a name
other than st.exe.)

I hope this helps. Let me know if it doesn't.

Best wishes


Roger B Newson
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected] 
Web page:
Departmental Web page:

Opinions expressed are those of the author, not of the institution.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Devra Golbe
Sent: 15 August 2008 20:15
To: statalist
Subject: st: inputst can't find file

I am having trouble with Roger Newson's wonderful stcmd suite (from 
SSC).  inputst can't seem to find the file I would like to convert.  
Pasted below is a log in which I confirm the StatTransfer path, the file

locations, etc. Can anyone spot my mistake?


. *confirm that these are the latest versions of of stcmd
. which inputst
*!Author: Roger Newson
*!Date: 07 August 2008

. which stcmd
*!Author: Roger Newson
*!Date: 06 August 2008
. *confirm that the path is set correctly
. macro dir StatTransfer_path
               C:\Program Files\StatTransfer9

. dir "C:\Program Files\StatTransfer9\st.exe"
 95.4k   1/20/08 17:20  st.exe          
. *confirm that the data file is where I think it is
. dir d:\data\buybacks\outsiders2DG.csv
 84.7k   8/14/08 15:07  outsiders2DG.csv
. inputst "d:\data\buybacks\outsiders2DG.csv" Stat/Transfer command 
"C:\Program Files\StatTransfer9" "d:\data\buybacks\outsiders2DG.csv" 
stata "C:\DOCUME~1\D
 > evra\LOCALS~1\Temp\ST_00000006.tmp" /y
Temporary datafile not created: 
Stat/Transfer did not run successfully
file not found

Devra L. Golbe, Professor of Economics
Hunter College CUNY

*   For searches and help try:

*   For searches and help try:

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