BookmarkSubscribeRSS Feed
DRMingle
Calcite | Level 5

I am trying to make use of the data that is available for practice on the SAS server, but I keep getting this error: physical file does not exist. Obviously, the file does exist I can see it in the folder... that leads me to believe that it is the path...

Here is what I have:

*SAS Program to read veggie data file and to produce several reports;

options nocenter nonumber;

     data veg;

          infile "c:\books\learning\veggies.txt";

          input Name $ Code $ Days Number Price;

          CostPerSeed = Price / Number;

run;

I know the above path in bold needs to be changed to avoid this error, but I am not exactly sure to do since this is on a SASapp server.

Any help would be appreciate. s

DM

3 REPLIES 3
DRMingle
Calcite | Level 5

The path as I see it is as follows:

ServersSASApp\Files\Bookdata\Learning_SAS_by_example\veggie.txt

Can anyone verify?

robby_beum
Quartz | Level 8

On our setups, we went from PC Base SAS 9.2 to Server based EG 4.3 and had to apply the full path name. I'm not sure if you are in the same boat.

1. We needed to change the properties of the C: drive -> Sharing Tab -> Share Name (and renamed it to C$)

Instead of "c:\books\learning\veggies.txt"; we then had to tweak it to the following "\\your_pc_name\C$\books\learning\veggies.txt" - this was so the server could recognize the pc and the drive where the file resides.

Hope this at least helps get you going.

DRMingle
Calcite | Level 5

Thanks Robby...

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 3 replies
  • 4715 views
  • 0 likes
  • 2 in conversation