I am teaching a university course that just got moved to remote instruction with SAS Studio with little notice. I uploaded my programs and data to the SAS Studio environment successfully, but I am unable to access the data via a libname statement.
It seems like all I need to do is this:
libname test "/home/u99999999/mydata";
where the contents of the quotes matches the location in the folder properties, but the library does not exist..
I just discovered it is because in SAS Studio mydata is not the same as Mydata, unlike in 9.4 which is all I used before today. How many other microdifferences are there between the versions?
@fpb1 wrote:
I just discovered it is because in SAS Studio mydata is not the same as Mydata, unlike in 9.4 which is all I used before today. How many other microdifferences are there between the versions?
That difference has nothing to do with SAS/Studio. I suspect that previously you were accessing files on a Windows file system. Windows does not allow two filenames to exist that differ only in the case of one or more of the letters so it will let you use any case to reference the file. But on a Unix file system that is not true. If the name is different then it is a different file.
The real trouble you might have with transferred files is if you had manually renamed the file that SAS uses to store a SAS dataset to include uppercase letters. On Windows that will not matter. But on Unix the filename and extension part of the filename must only use lowercase letters or else SAS cannot see the file. Again because the SAS code is case insensitive it does not matter if you code MYLIB.FILE1 or mylib.file1 in either case SAS will use a file named 'file1.sas7bdat' (all lowercase) in the directory that the fileref MYLIB points to so it will ignore files named File.sas7bdat or FILE1.SAS7BDAT.
Not my data, but the Little SAS Book provides example file names in a variety of cases. At least now I know that Unix is a possible answer to unexpected results going forward.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Ready to level-up your skills? Choose your own adventure.