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]

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


From   Wayne Folta <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Saving CSV (on Mac) errors with spaces in file name
Date   Sat, 03 Aug 2013 14:21:42 -0400

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/


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