Access SAS data sets with SAS on IUanyWare

On this page:


Overview

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.

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

The settings for each Mac 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 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 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.

Get help

If you have questions about using statistical and mathematical software at Indiana University, contact the UITS Research Applications and Deep Learning team.

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 2019-01-04 14:56:25.

Contact us

For help or to comment, email the UITS Support Center.