Run an SAS batch job on Karst at IU

To run an SAS batch job on the Karst cluster at Indiana University, create your SAS file (for example, my_sas.sas), and then write a TORQUE job script (for example, my_sas_job.script) similar to the following example:

  #!/bin/bash
  #PBS -k o
  #PBS -l nodes=1:ppn=2,walltime=30:00
  #PBS -M username@indiana.edu
  #PBS -m abe 
  #PBS -N JobName
  #PBS -j oe
  sas my_sas.sas

In the above example:

  • Replace username@indiana.edu with the email address where you want to receive system messages about your job.
  • If you are not working in your home directory, include a line (between your TORQUE directives and the execution line) that changes the working directory; for example:
      cd /N/u/username/Karst/my_work_dir
    

    Also, use the full path to your SAS script on the execution line; for example:

      sas ~/my_work_dir/my_sas.sas
    

To submit your job script (for example, my_sas_job.script), on the command line, enter:

  qsub my_sas_job.script

To check the status of your job, use either the qstat or showq command. After the job is executed, you will receive email confirmation.

You may see a log file (my_sas.log) and an output file ( my_sas.lis) in the default directory.

For more about using TORQUE job scripts to run batch jobs, see Use TORQUE to submit and manage jobs on high-performance computing systems.

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 axib in the Knowledge Base.
Last modified on 2019-03-19 09:15:20.

Contact us

For help or to comment, email the UITS Support Center.