Version Information

SAS 9.3 was installed 6/2013 with the following components:

Education Analytical Suite, including the products:     • Base SAS   • SAS Bridge for ESRI   • SAS Enterprise Guide   • SAS Integration Technologies   • SAS/ACCESS Interface to Aster nCluster   • SAS/ACCESS Interface to DB2   • SAS/ACCESS Interface to Greenplum   • SAS/ACCESS Interface to Informix   • SAS/ACCESS Interface to Microsoft SQL Server   • SAS/ACCESS Interface to MySQL   • SAS/ACCESS Interface to Netezza   • SAS/ACCESS Interface to ODBC   • SAS/ACCESS Interface to Oracle   • SAS/ACCESS Interface to PC Files   • SAS/ACCESS Interface to Sybase   • SAS/ACCESS Interface to Sybase IQ   • SAS/ACCESS Interface to Teradata   • SAS/AF   • SAS/ASSIST   • SAS/CONNECT   • SAS/EIS   • SAS/ETS   • SAS/FSP   • SAS/GRAPH   • SAS/IML   • SAS/INSIGHT   • SAS/LAB   • SAS/OR   • SAS/QC   • SAS/SECURE 168-bit   • SAS/SHARE   • SAS/STAT   • SAS Enterprise Guide

Running Batch Jobs

The environment for SAS is created by typing

use sas

You only need to type this once at the beginning of your login session. Batch jobs should be submitted through the SLURM scheduler just like any other batch job

sbatch -p main --qos main myprogram.sas

You may also create a batch file with your parameters and submit with that. An example contents of such a program (called myprogram here )

#SBATCH -p main
#SBATCH --qos main
#SBATCH -o myoutputfile

sas mysasprog.sas

Running Interactive Jobs

Interactive jobs may not be run on the master node. You will need to create the SAS environment by typing

use sas

If you are running Xwindows (use Xming or a similar xserver on your desktop) you can submit an interactive job like this:

salloc -n 1 -p main --qos main xterm -e 'ssh -X `srun hostname`'

then start sas

sas

Alternatively you may run a sas file in an interactive shell without Xwindows:

salloc -n 1 -p main --qos main sh -c 'ssh `srun hostname`'

then in the resulting shell:

sas mycommands.sas

Thread Support

SAS does not support MPI (which would allow it to coordinate multiple processes running on different nodes), but it does have some support for using multiple CPU cores within a single node. The default sbatch options used above will allocate only a single core. You can add:

#SBATCH -n 8   # use 8 cores
#SBATCH -N 1   # all on one node

And then, within your .sas program, to enable thread support and use the correct number of CPU cores:

options threads cpucount=%sysget(SLURM_NTASKS);