Submitting a STATA Job to SGE

The first example is for a single processor job:

#!/bin/bash
#$ -M <your_netid>@nd.edu
#$ -m abe
#$ -q long
#$ -pe smp 1

module load stata

stata -b  do  <your_do_file>.do


The second example is for a multi-processor job using 4 cores (max of 16 cores):

#!/bin/bash
#$ -M <your_netid>@nd.edu
#$ -m abe
#$ -q long
#$ -pe smp 4

module load stata

stata-mp  -b  do  <your_do_file>.do

STATA's web site is here: http://www.stata.com/

In order to use the graphical user interface (GUI) interactive, at a command prompt, type:


module load stata

xstata

Note: When transferring files from a Windows machine, be sure to include a blank line at the end of your script as the conversion to a Unix file format sometimes causes the last line of the file to be ignored.