Announcement

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

  • STATATMP not working as expected

    Any idea why Stata would set c(tmpdir) to something other than the Windows STATATMP environment variable? And multiple versions of Stata in the same environment would set c(tmpdir) differently when the environment variable is the same?
    • If I open a cmd terminal "echo %STATATMP%" displays S:\
    • If I open Stata, "local x: environment STATATMP -> display "`x'"" displays S:\
    • But "display "`c(tmpdir)'" displays C:/ (which is not even the default temp directory)
    • And all associated temp commands try to write to C:/
    This has me stumped. Where in the Stata initialization process does it set c(tmpdir) to the value of the Windows environment variable STATATMP? Could that be overridden somehow by a profile.do or sysprofile.do?

    Thanks,
    Mike LeGower
Working...
X