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...
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.