Good evening,
I haven't used SAS in awhile, and so before beginning writing my new program, I wanted to be sure an old program ran well. I am using a different computer than what I used last time I ran SAS, so I took my data files and changed the location on the original program (original data was on an A drive; now it's on a D drive), and tried running the program.
I have a number of errors, but at the most basic level, it is not finding my data files. Here is the message I receive:
As I mentioned, this file did work previously (although it may be a new version of SAS since I ran this last.)
Thanks very much for your help.
Your SAS session runs on a remote UNIX (most probably Linux) server that does not have the concept of drives and drive letters.
To access external (to SAS) files you need to
Either way, you have to use UNIX filename syntax (forward slashes to separate directories, and starting at the UNIX root (/). Using ~ or $HOME to address your personal home directory implies this.
How do you access SAS?
When I see a mix of forward slashes and backward slashes, it makes me think you haven't figured out the right way to refer to a file. That would be the place to start.
Why are you using Windows paths on a Linux/Unix machine?
Ask for the location of these files if you don't know.
Fyi the part in red is a Unix path, the part in blue is a Windows path.
/var/lib/sasstudio/studioconfig/D:\large70.txt
Your SAS session runs on a remote UNIX (most probably Linux) server that does not have the concept of drives and drive letters.
To access external (to SAS) files you need to
Either way, you have to use UNIX filename syntax (forward slashes to separate directories, and starting at the UNIX root (/). Using ~ or $HOME to address your personal home directory implies this.
How do you access SAS?
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.