SAS

To run SAS in batch mode, first create a file with all of the SAS commands that you would like to run. In this example, file.sas contains sas commands. Running the commands in file.sas is as simple as running "sas file.sas". This can then be added to a Slurm job submission script:

$ cat sas-job.slurm
#!/bin/sh
#SBATCH --job-name=SAS_job
#SBATCH --time=1:00:00
#SBATCH --mail-type=BEGIN,END,FAIL
#SBATCH --mail-user=uniqname@umich.edu
#SBATCH --mem=1g
#SBATCH --tasks-per-cpu=1
sas file.sas

To submit the batch job use sbatch:

$ sbatch sas-job.slurm