Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Trouble with outreg2 and Stata 10- filepaths that include spaces


From   Michael Hanson <[email protected]>
To   [email protected]
Subject   Re: st: Trouble with outreg2 and Stata 10- filepaths that include spaces
Date   Tue, 13 Jan 2009 15:48:21 -0500

On Jan 13, 2009, at 3:09 PM, Erika Morris wrote:

I would appreciate your help with the outreg2 command.  I have used
this command in the past without trouble; however, I recently upgraded
to Stata 10.1 and am now encountering difficulties. If I specify an
output file path and name that has any spaces in it, and also specify
a file type for the outreg2 command (e.g. excel or text), I get an
error message.

Example:
. outreg2 using "C:\Documents and Settings\emorris\My
Documents\results", excel auto(3) replace
invalid 'and'
r(198);

I don't use -outreg(2)- myself, but you might want to start by using forward slashes (/) instead of backward slashes (\) in your path. Using backward slashes can occasionally cause problems; Stata converts all forward slashes to the delimiter appropriate for your operating system. (I'm not claiming this will definitively address your problem, however, but it is good practice if nothing else.) See also <http://www.stata-journal.com/sjpdf.html?articlenum=dm0017>.

Hope this helps,
Mike

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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