Hi:
@Kurt_Bremser is correct. When you are working in SAS Studio on SAS OnDemand for Academics, SAS cannot read from your C: drive or Mac hard drive and it cannot write to your local machine drives. Any data you want to read must be uploaded into your Files (Home) top folder on the OnDemand server. Any files you want to create must be written to your server folders and then downloaded to your machine after creation. To keep things straight on my OnDemand account, I have made 2 folders underneath the Files (Home) top location. I call them all_data and all_output. Any data I want to read I upload to the all_data folder and any report files, such as RTF, PDF, or HTML files that I want to write I will use ODS statements and write the output to the all_output folder. Here's an example:
In your code, you do NOT refer to Files (Home) -- the server path for that top node is /home/<youruserID> and as you can see in the screen shot, my userID is cynther0, so my top folder's path name is /home/cynther0. If your userID was u12345678, then your top folder's path would be /home/u12345678.
Any subfolders created under the top folder have the subfolder name appended to the top level So, for example, the all_data folder has a path of /home/cynther0/all_data and the all_output folder has a path of /home/cynther0/all_output. And so you can see that the file student_transport.dat in my FILENAME statement has a physical location of /home/cynther0/all_data/student_transport.dat and the PDF file has a specified location of /home/cynther0/all_output/testfile.pdf and both files are visible in my screen shot.
I use a DATA step program to reference the .DAT file in order to read the file and then I use an ODS PDF statement to create a report of all the Transport methods for each student.
The best, never-fail method to find your physical location for reading data or writing output files is to right click on the folder or file name in the Server Files and Folders pane. Then choose Properties from the popup menu. When the Properties window opens, you will find a Location field that shows the full and correct path for you to use.
Another tip is to avoid the use of SASUSER as a library reference on the OnDemand server. Most SAS Studio installations do not permit write access to the SASUSER folder. We recommend in our classes that you put your personal folders directly under the Files (Home) location.
Hope this helps,
Cynthia
... View more