BookmarkSubscribeRSS Feed
EdgarIsmael
Calcite | Level 5

Hi, I am stuck on level 1 practise and can not figure out how to solve it.  This is the code that should be correct, but I still get the following errors. ( ERROR: Physical file does not exist, /pbr/biconfig/940/Lev1/SASApp/home/userid/EPG194/data//eu_sport_trade. ) and (ERROR: File WORK.EU_SPORT_TRADE.DATA does not exist. )

 

 

proc import datafile="home/userid/EPG194/data/eu_sport_trade.xlsx"
dbms=xlsx
out=eu_sport_trade
replace;
run;

proc contents data=eu_sport_trade;
run;

2 REPLIES 2
Kurt_Bremser
Super User

You are working on a UNIX environment; supply absolute path names, otherwise the system will consider your filename a relative path that starts in the Current Working Directory. An absolute path starts in the system root, so the first character should be a forward slash:

proc import datafile="/home/userid/EPG194/data/eu_sport_trade.xlsx"

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

Register now!

Mastering the WHERE Clause in PROC SQL

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.

Discussion stats
  • 2 replies
  • 953 views
  • 1 like
  • 2 in conversation