SAS (Statistical Analysis System) provides extensive statistical capabilities, including tools for both specialized and enterprise-wide analytical needs. SAS includes a wide range of statistical analyses, including analysis of variance, regression analysis, categorical data analysis, multivariate analysis, survival analysis, psychometric analysis, cluster analysis, and nonparametric analysis.

Interactive Mode

  1. SSH onto the mercury login node with X11 forwarding ssh -X <BoothID>

  2. Request an interactive session on a compute node srun --pty bash --login

  3. Load the module with the desired version of SAS module load SAS/9/9.4

  4. Start SAS by typing: sas


Remember to use X11 forwarding to connect to SAS in interactive mode

Batch Mode

To run SAS in batch mode, generate a submission script similar to the one below, and run by typing sbatch

#SBATCH --account=phd
#SBATCH --mem=1G
#SBATCH --time=0-01:00:00
#SBATCH --job-name=example_job

# Load the module with the desired version of matlab
module load sas/9/9.4

# create a new scratch directory for this job
mkdir -p $scratch_dir

# run script named myscript
sas -work $scratch_dir -noterminal myscript

# remove scratch directory when done
rm -r $scratch_dir