Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Temporary data file not found after stcmd

    Hi,

    I am using the inputst command, part of the stcmd package from StatTransfer. The command is creating an invalid tmpfile, and therefore unable to load the data into memory. Here's the output:

    . inputst "D:\Dropbox\Robbie\surveys\Data\consumer_survey.sa v"
    Stat/Transfer command submitted:
    "C:\Program Files\StatTransfer13-64\st.exe" "D:\Dropbox\Robbie\surveys\Data\consumer_survey.sa v" stata "D:\stata_temp\ST_00000001.tmp"
    Temporary datafile not created: D:\stata_temp\ST_00000001.tmp
    Stat/Transfer did not run successfully
    file not found
    r(601);


    The file provided as an input exists, and the temp directory exists. Any ideas on why the tmpfile is not created? Thanks.

  • #2
    Is it possibly the space in "consumer_survey.sa v"?

    You might do better putting your commands in a file:

    log using my.log
    copy "D:\Dropbox\Robbie\surveys\Data\consumer_surve y.sa v" stata "D:\stata_temp\ST_00000001.tmp"
    quit

    run from stata with

    stcmd my.stcmd

    And then look at the log for error messages

    Steve
    Steven Dubnoff, President
    Circle Systems
    The Developers of Stat/Transfer
    [email protected]
    www.stattransfer.com

    Comment


    • #3


      . local ouput "C:\Users\User\Desktop\cenagro"

      . global path "C:\Users\User\Desktop\cenagro"

      . foreach topic in "337-Modulo229" {
      2. cd "$path/`topic'"
      3. inputst 01_IVCENAGRO_REC01.sav
      4. save `ouput'/`i'_01_IVCENAGRO_REC01.dta, replace
      5. }
      C:\Users\User\Desktop\cenagro\337-Modulo229
      Stat/Transfer command submitted:
      "H:\stdemo64\st.exe" "01_IVCENAGRO_REC01.sav" stata "C:\Users\User\AppData\Local\Temp\ST_2fb8_000001.t mp"
      Temporary datafile not created: C:\Users\User\AppData\Local\Temp\ST_2fb8_000001.tm p
      Stat/Transfer did not run successfully
      file not found
      r(601);

      end of do-file

      r(601);

      .

      Comment

      Working...
      X