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"

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1096 views
  • 1 like
  • 2 in conversation