To reinforce an answer from yesterday, SAS is able to use TEMP as a default/pre-defined LIBREF due to the fact that with most installs of Windows, TEMP is defined as a Windows environment variable. One way to view all of the environment variables that are defined in Windows is to bring up your Windows control panel and then choose System, then Advanced System Settings, and then click the Advanced tab. In this window, click the button titled "Environment Variables" and then take a look at the environment variables defined under "User Variables".
For most users, TEMP points to the following Windows directory:
C:\Users\userid\AppData\Local\Temp
Even though this appears to be a temporary location, note that any files and data sets written to TEMP by SAS will not be deleted from disk upon SAS termination. This is different than using the default SAS WORK location (where files and data sets written to work are deleted from disk upon normal SAS termination).
... View more