Hi,
I am trying to complete the following activity in SAS Programming Essentials: Accessing Data but am unable to map the Excel file from my drive onto SAS Enterprise Guide:
Write a LIBNAME statement to create a library named NP that reads np_info.xlsx in the course data as follows:
libname np xlsx "C:/Users/574026662/Documents/SAS documents training/coursedata/EPG194/data/np_info.xlsx";
It keeps saying that it cannot read or map the file, which is strange because I've specified the exact file path.
Can someone help?
Thanks.
Are you connecting remotely to a sas server? Try checking a few of the system macro variables like:
%put &=sysscpl &=userdir;
Hi,
It says SYSSCPL=AIX userdir
WARNING: Apparent symbolic reference USERDIR not resolved.
@rli7 wrote:
Hi,
It says SYSSCPL=AIX userdir
WARNING: Apparent symbolic reference USERDIR not resolved.
Does the C: prefix on a filename really work on system running the AIX unix operating system? Are you sure you haven't given it the path on your local PC instead of the path on the machine where SAS is running?
Hi.
Does you libname statement work if you leave out the first xlsx? (the xlsx immediately after np)
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.