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
The path as I see it is as follows:
ServersSASApp\Files\Bookdata\Learning_SAS_by_example\veggie.txt
Can anyone verify?
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.
Thanks Robby...
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.
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.