Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Saving CSV (on Mac) errors with spaces in file name


From   William Buchanan <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Saving CSV (on Mac) errors with spaces in file name
Date   Sat, 3 Aug 2013 14:16:34 -0600

Have you tried using compound double quotes?

Sent from my iPhone

On Aug 3, 2013, at 12:21, Wayne Folta <[email protected]> wrote:

> I tried this:
> 
> . use "/Users/myuserid/Documents/Stats/foo/Foo Top 25 Length.dta"
> 
> . export delimited using "/Users/myuserid/Documents/Stats/foo/Top 25 Length.csv", replace
> invalid '25' 
>                 stata():  3598  Stata returned error
> export_delim_write_file():     -  function returned error
> export_delim_export_file():     -  function returned error
>                 <istmt>:     -  function returned error
> r(3598);
> 
> If I remove the spaces from the "Top 25 Length.csv", it works. Obviously there's no overall problem with spaces in file names, since the use uses a similar file name. But in the handoff to Java (I'm guessing the export is done in Java), something bad happens.
> 
>   Wayne
> 
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index