BookmarkSubscribeRSS Feed
sriity_25
Fluorite | Level 6

Hi,

 

I downladed SAS university edition and I get this error while running the practice programs in Lesson 2: Working with SAS Programs. I defined the orion library by creating ecprg193 setup. But I still get this error.

 

ERROR: Physical file does not exist, /folders/myfolders/ecprg193/country.dat.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.NEWCOUNTRY may be incomplete. When this step was stopped there were 0 observations and 2 variables.
WARNING: Data set WORK.NEWCOUNTRY was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
real time 0.03 seconds
cpu time 0.03 seconds
 
Please help!!
10 REPLIES 10
ballardw
Super User

Please show the entire code along with the error.

sriity_25
Fluorite | Level 6
data work.newcountry;
   length Country_Code $ 2 Country_Name $ 48;
   infile "&path/country.dat" dlm='!'; 
   input Country_Code $ Country_Name $;
run;

proc print data=work.newcountry;
run;

 

 

The error is as follows: 

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
55
56 data work.newcountry;
57 length Country_Code $ 2 Country_Name $ 48;
58 infile "&path/country.dat" dlm='!';
59 input Country_Code $ Country_Name $;
60 run;
 
ERROR: Physical file does not exist, /folders/myfolders/ecprg193/country.dat.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.NEWCOUNTRY may be incomplete. When this step was stopped there were 0 observations and 2 variables.
WARNING: Data set WORK.NEWCOUNTRY was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
real time 0.03 seconds
cpu time 0.03 seconds
 
 
61
62 proc print data=work.newcountry;
63 run;
 
NOTE: No observations in data set WORK.NEWCOUNTRY.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
 
 
64
65 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
77
ballardw
Super User

And the code assigning the PATH macro variable?

 

Note the path is going to be case sensitive. So if you named the folder Ecprg193 then that does not match ecprg193.

sriity_25
Fluorite | Level 6

What is the code assigning the path?
This is the code I used for the setup
%let path=/folders/myfolders/ecprg193;
libname orion "&path";
And ecprg193 is in lowercase. I havent used Ecprg193 or anyother since I know it is case sensitive.

JediApprentice
Pyrite | Level 9

When you run your setup program, you should see the note in the log:

 

NOTE: Libref ORION was successfully assigned

Does this show up?

Are you sure you created the folder you are referencing in that location?

  

sriity_25
Fluorite | Level 6

Yes it does show up.
This is what I got in the log-
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 55         
 56         %let path=/folders/myfolders/ecprg193;
 57         libname orion "&path";
 NOTE: Libref ORION was successfully assigned as follows:
       Engine:        V9
       Physical Name: /folders/myfolders/ecprg193
 58         
 59         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 71 

 

I did not find any error.       

sriity_25
Fluorite | Level 6
Yes I am sure. I created a folder "SASuniversityedition" in the desktop with a subfolder "my folders". Then linked it to the virtual box. Started SAS Studio and ran the ecprg193 as per the rules mentioned in the setup.
Reeza
Super User

Post a screenshot of that folder. Also, does the folder contain the file referenced?

Can you open it as a text file?

 

 

Reeza
Super User

In SAS UE, go to the Server Files and Folders Pane. 

Find the ECPRG folder, navigate to the file. Right click the file and select properties. You'll get the path to the file. Use that in your code.

sriity_25
Fluorite | Level 6
Thank you Reeza, Ballardw and JediApprentice. I uninstalled it and installed it again. It is working now.
The path location was right. I dono exactly what went wrong. But itseems to be working now. Thank you for your replies. Sorry for the late reply.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 10 replies
  • 2245 views
  • 1 like
  • 4 in conversation