Thank you for posting this interesting question. Searching for the answer I discovered this page of the online help (for SAS under Windows):
https://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/usedatalibs.htm#useenvvar
Quote:
---------------------
When you use a libref in a SAS statement, SAS resolves libref assignments in this order:
a libref assigned by a LIBNAME statement, a LIBNAME function, or by using the New Library dialog box, with the last assignment taking precedence
a libref assigned by a SAS environment variable
a libref assigned by a Windows environment variable.
---------------------
In your case I guess that a Windows environment variable TEMP exists (this is the case on my computer, too) and points to the path you've mentioned.
You can quickly list the Windows environment variables and their values in the SAS log by submitting the following code:
filename ttt pipe 'set';
data _null_;
infile ttt lrecl=5000;
input;
put _infile_;
run;
A list of the SAS environment variables (see item 2 above) and their values can be obtained as follows:
%put %sysfunc(getoption(set));
... View more