Import a CSV file from an IU Cloud Storage location using SAS on IUanyWare

Note:
Before you can access files in IU Cloud Storage from an IUanyWare application, you must Set your storage preferences in the IU Cloud Storage portal.

In SAS on IUanyWare, to import a comma-delimited (.csv) file from an IU Cloud Storage location:

  1. In the menu bar, click File, and then select Import Data.
  2. In the "Import Wizard" dialog box, select Standard data source, use the drop-down list to select Comma Separated Values (*.csv), and then click Next.
  3. In the "Select file" window, click Browse, and then:
    1. In the "Open" window, on the left, click This PC.
    2. Double-click the icon for the cloud storage option that contains your file.
    3. Locate your file, click to select it, and then click Open.
  4. Click Next, and then, under "Library", use the drop-down list to choose the libref corresponding to the library in which you want to store the CSV data.
    Note:
    To be available in the drop-down list, the appropriate libref must be associated with the library before you open the Import Wizard.
  5. Under "Member", enter a valid data set name, and then click Finish. The data from the CSV file should appear in the library you selected.

    Alternatively, click Next to generate and save a file containing a PROC IMPORT statement you can use to import the data again from the same source. Enter a filename or click Browse to select an existing file, and then click Finish. The resulting PROC IMPORT statement will look similar to this:

    PROC IMPORT OUT= WORK.data 
                DATAFILE= "I:\mydata\data.csv" 
                DBMS=CSV REPLACE;
         GETNAMES=YES;
         DATAROW=2; 
    RUN;

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 bdwf in the Knowledge Base.
Last modified on 2023-11-07 10:21:15.