I am trying to export data from SAS into a CSV file from a table I created using PROC SQL
. (test_data was created using a PROC SQL Select
statement)
I tried the following code:
LIBNAME libout "C:\Users\Outbox";
proc export data=test_data dbms=csv replace outfile="&libout.\test_data.csv";
run;
When running this code snipped the following error shows up:
ERROR: Physical file does not exist, C:\windows\system32\&libout.\test_data.csv.
I know I can specify the path using a string for outfile
directly, but I am trying to use a LIBNAME
for later application in another system instead.
Thanks in advance.