On Karst at IU, how do I run an SAS batch job?

To run an SAS batch job on the Karst cluster at Indiana University, create your SAS file (e.g., my_sas.sas), and then write a TORQUE job script (e.g., 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 (e.g., 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 What is TORQUE, and how do I use it to submit and manage jobs on high-performance computing systems?

If you have questions about using statistical and mathematical software at Indiana University, contact Research Analytics. Research Analytics is located on the IU Bloomington campus at Woodburn Hall 200; staff are available for consultation Monday-Friday 9am-noon and by appointment.

Note:
For details about availability of UITS services during Thanksgiving break, see UITS Thanksgiving break support hours.

This is document axib in the Knowledge Base.
Last modified on 2017-05-12 17:41:37.

  • Fill out this form to submit your issue to the UITS Support Center.
  • Please note that you must be affiliated with Indiana University to receive support.
  • All fields are required.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.

  • Fill out this form to submit your comment to the IU Knowledge Base.
  • If you are affiliated with Indiana University and need help with a computing problem, please use the I need help with a computing problem section above, or contact your campus Support Center.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.