Hi:
Just to clarify the ERROR that shows "/opt/sasinside" is very easy to generate in SAS University Edition. All you have to do is get some part of the path incorrect, or refer to a drive location instead of /folders/myfolders/ or not define your shared folder location correctly. For example, when I refer to a C: drive location in SAS University Edition, I can generate the same kind of "/opt/sasinside" error, as shown below:
Here, my code was in a datafile= option, but it could just have easily been an INFILE or a FILE statement or a FILE= option. Notice how the /opt/sasinside/SASConfig/Lev1/SASApp server folder path is pre-pended to the C: drive location path, resulting in a non-existent location, as far as the Virtual Machine is concerned.
This is an example from Programming 1, but could be an error with any Excel, TXT or CSV file that you are trying to read/import.
Let's take a step back and look at an example of what a shared folder location looks like on the Mac, in Finder:
This is a screen shot of SASUniversityEdition/myfolders on a Mac. Focus on the bottom line of Finder:
The name of the shared folder is in a very long Macintosh path for a student named Lee. So he's placed his SASUniversityEdition folder in
/Documents/Documents - Lee's iMac/SASUniversityEdition/myfolders
and then in that location unzipped the EPG194 zip file so he's got a subfolder also called EPG194 and then under THAT folder are more folders called: activities, data, demos, output, practices, as shown in the Finder window.
It would be incorrect to use ANY of the full Mac path in any code, just as it was incorrect in my first screen shot to use any of my C: drive location in the code.
To find the name of the folder you're interested in (or of the individual file you're interested in), in SAS University Edition,
Note that you do NOT see any part of the Mac file or folder names in the Location pane.
First indication of a problem -- do you see My Folders at the top of the Server Files and Folders pane? If so, that is good, it means you've defined your shared folder location correctly.
Second thing to check -- do you see your file or folder of interest underneath the My Folders location? If yes, even better -- now you just have to do the Properties step to get the location you need. But if you do NOT see you file or folder underneath the My Folders location, it's a good time to use Finder and locate your file on the Mac file system and then MOVE it to your shared folder location.
Third thing to check -- is everything spelled right and in the right case? There is a difference between:
/folders/myfolder --> No trailing s
folder/myfolders --> no leading slash, folder instead of /folders/myfolders
/folders/myfoldres --> myfolders misspelled as myfoldres
/folders/my folders --> no space in myfolders
and
/folders/myfolders
Bottom line, if you can see your data file for the INFILE statement in your /folders/myfolders location inside SAS Studio, then ALL you need to do to get the correct info for the INFILE statement is right click on the file name, choose Properties, and look at the fully qualified name that you see in the Properties window.
If you do NOT see your file in the /folders/myfolders location, then you need to get it there.
Hope this helps,
Cynthia
... View more