SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
neha
Calcite | Level 5
Hi All,

I am relatively new to SAS EG and while I was able to use the infile statement in PC SAS, in SAS EG when I use infile and give the path for the file stored on the SAS server in myuser folder. I get an error saying " physical file does not exist" any help towards fixing this is highly appreciated.
1 REPLY 1
ChrisHemedinger
Community Manager
If you are using EG to connect to a remote machine, the INFILE or FILENAME statement must refer to a file that exists on the remote machine. Because the SAS program is running remotely, it cannot pick a file off of your local hard drive, unless you craft the file reference so that it can see your file as a network resource.

For example (assuming a Windows server):

filename myfile "\\mylocalmachine\public\mydata.txt";

Chris
Register for SAS Innovate 2025!! The premier event for SAS users, May 6-9 in Orlando FL. Sign up now for the best deals!

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Creating Custom Steps in SAS Studio

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 2565 views
  • 0 likes
  • 2 in conversation