STATA
Last updated
Last updated
STATA saves all temporary files in the C:/ in Windows workstations. Since storage quota are limited on the C:/, you should follow these steps to change the temporary directory
Find a folder where you are allowed to create and modify files. This is going to be the new SAS temporary folder. In this tutorial, let's assume that the directory is "E:\StataTemp\ccvdemo2"
Users can change the temporary directory in different ways. The second way is required for multiple users to run Stata as it allows each user to have their own temporary directory for Stata.
Users only need to make the following changes ONCE.
Step 1: Launch "Control Panel"
Step 2: Click "System and Security" in Control Panel
Step 3: Click "System"
Step 4: Click "Advanced system settings"
Step 5: Click "Environment Variables"
Step 6: Click "New"
Step 7: Enter the variable name STATATMP
and value that is your temp folder, i.e., E:\StataTemp\ccvdemo2.
Then click "OK"
After the changes above, whenever Stata
is launched, it saves temporary files in the configured temporary folder.
Launch Notepad. (You can click the search icon in the bottom left of the screen on the Taskbar. Type Notepad and click the first icon)
Enter the following text. It contains 4 lines, including a blank line at the bottom:
On Notepad, click on File -> Save As ...
Click on "Desktop" on the left "Quick Access Panel"
Enter "myStata.bat" in the File name field.
In the "Save as Type" dropdown list, choose "All Files"
Click Save
After the changes above, whenever users double click "myStata" file on the Desktop, Stata
is launched and saves temporary files in the configured temporary folder.