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   Nick Cox <njcoxstata@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Saving CSV (on Mac) errors with spaces in file name
Date   Sat, 3 Aug 2013 21:25:56 +0100

I am puzzled by the Java mention here. What you are seeing is various
Mata functions complaining. But it does look like a bug.
Nick
njcoxstata@gmail.com


On 3 August 2013 19:21, Wayne Folta <wfolta@mac.com> 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