ARCHIVED: Use SAS on Karst at IU

This content has been archived, and is no longer maintained by Indiana University. Information here may no longer be accurate, and links may no longer be available or reliable.
Note:
Karst was retired from service on December 18, 2020. Although you can no longer log into Karst, you can access files in your Karst home directory from any of the other IU research supercomputers until December 31, 2021. For information about Quartz, Karst's replacement system, see About Quartz at IU.

At Indiana University, SAS is available on the Karst research supercomputer. You can run SAS interactively, non-interactively, or as a background process.

On this page:


Add SAS to your user environment

To add SAS to your user environment, load the SAS module:

  module load sas

Run SAS interactively

To run SAS interactively, on the command line, enter:

  sas -nodms

When SAS initializes, the SAS command prompt (1?) will display. The number appearing with the question mark in the prompt will increase with each subsequent command line. Enter your command(s) and terminate each SAS command with ; (semicolon). For example, to execute a statement, enter:

  run;

To end the session, at the SAS prompt, enter:

  endsas;

Run SAS in non-interactive mode

To run a SAS job non-interactively, on the command line, enter:

  sas program.sas 

Replace program.sas with your SAS program's filename. When the job has been executed, two new files will exist in your default directory. The SAS log, program.log, will contain the code that was run along with any notes, warnings, or errors that resulted during execution. The listing report, program.lst, will contain output from the program, if any. In both cases, program represents the name of your SAS program file. If your program file contains errors, the .lst file may not be generated.

Run SAS as a background process

When you run a non-interactive job, your terminal is not free for other computing tasks until the job is completed. If you want to use your terminal for computing activities while the job runs in the background, include & (ampersand) at the end of the command:

  sas program.sas &

Again, replace program with the name of your SAS program.

This will free your terminal for other computing tasks while the job runs in the background. When the job is completed, a message will be displayed on the screen, and the .log and the .lst files will be stored in the default directory.

Get help

UITS Research Technologies provides a Getting Started with SAS under UNIX tutorial.

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

This is document agik in the Knowledge Base.
Last modified on 2023-05-09 14:45:34.