SAS
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
SSH onto the mercury login node with X11 forwarding
ssh -X <BoothID>@mercury.chicagobooth.edu
Request an interactive session on a compute node
srun --mem=16G --pty bash --login
Load the module with the desired version of SAS
module load sas/9/9.4
Start SAS by typing:
sas
Note
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 submit.sh
.
#!/bin/bash
#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
scratch_dir="/scratch/${SLURM_JOB_USER}/${SLURM_JOB_ID}"
mkdir -p $scratch_dir
# run script named myscript
sas -work $scratch_dir -noterminal myscript
# remove scratch directory when done
rm -r $scratch_dir