ARCHIVED: Run an SAS batch job on Karst at IU

This content has been archived, and is no longer maintained by Indiana University. Information here may no longer be accurate, and links may no longer be available or reliable.
Note:
Karst was retired from service on December 18, 2020. Although you can no longer log into Karst, you can access files in your Karst home directory from any of the other IU research supercomputers until December 31, 2021. For information about Quartz, Karst's replacement system, see About Quartz 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 ARCHIVED: 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 2023-05-09 14:45:12.