Accessing SAS data sets with SAS on IUanyWare

Opening, using, and saving data sets in SAS on IUanyWare is done through defining a library, just as you would do with a desktop or laptop installation. However, since IUanyWare is a virtual service, you need to be able to tell SAS how to find the files on your local (client) disk drive.

Note:
Do not store files in IUanyWare; you can instead use the Cloud Storage service.

On this page:


Windows

Suppose you want to read a SAS data set named grade.sas7bdat in the c:\mysaswork\data directory. The following example shows how to retrieve a SAS data set:

  LIBNAME stat '\\Client\C$\mysaswork\data';

  DATA stat.new_grade;
     SET stat.grade;
     ...
  RUN;

The above code generates a SAS library called stat which is linked to the c:\mysaswork\data directory on your local system. The data sets you read, change, and save in that library will be in the c:\mysaswork\data directory.

If asked whether you want to permit a connection to your local drives, select read and write access.

macOS/OS X

The settings for each macOS/OS X computer vary, so try to find the path to your SAS data set within the "Explorer" window in SAS. Click the This PC icon in the "Explorer" window to find the drive you are looking for.

While you find the path, the Citrix Viewer asks you for permissions to access the drives on your Mac OS X computer. Choose Read & Write for each drive. Once you pick the drive, the top of the "Explorer" window will say, for example, Contents of 'This PC'.

Suppose your SAS data set named grade.sas7bdat is located at /Users/myusername/Documents/. The following example shows how to retrieve the SAS data set:

  LIBNAME stat '\\Client\C$\Documents';

  DATA stat.new_grade;
     SET stat.grade;
     ...
  RUN;
Note:
If you have an external drive attached to your Mac OS X computer, select the Drives menu in Citrix Viewer. Also, you may need to change file access permissions from Preferences in Citrix Viewer. Choose the Devices tab, and check the Mapped Drives window.

Getting help

If you have questions about using statistical and mathematical software at Indiana University, contact Research Analytics. Research Analytics is located on the IU Bloomington campus at Woodburn Hall 200; staff are available for consultation Monday-Friday 9am-noon and by appointment.

Note:
For details about availability of UITS services during winter break, see UITS winter break support hours.

For help with IUanyWare, contact your campus Support Center, or search this Knowledge Base.

This is document bbqd in the Knowledge Base.
Last modified on 2017-11-17 16:37:46.

  • Fill out this form to submit your issue to the UITS Support Center.
  • Please note that you must be affiliated with Indiana University to receive support.
  • All fields are required.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.

  • Fill out this form to submit your comment to the IU Knowledge Base.
  • If you are affiliated with Indiana University and need help with a computing problem, please use the I need help with a computing problem section above, or contact your campus Support Center.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.