Note: STATA is a licensed software that was purchased by a research group on the Grid. It is currently only available for those authorized by that research group. If you'd like to use STATA on the Grid, please reach out to the HPC team at
hpc@wayne.edu for more information.
Follow these steps to run STATA on the Grid.
How to Run STATA - Interactive
You will need to download an X Window System. If you are using Unix, Linux, or OSX you can use X11. Follow the steps in the X11 Tutorial, then continue at step four below.
For Windows users, follow the Xming Tutorial.
Step 1
Launch Xming.
Step 2
Log on to the Grid.
Step 3
Submit an interactive job: srun -q debug -t 10:0 --mem=10G --pty bash

Step 4
Type module load stata

Step 5
Type xstata

- You are now running STATA.

How to Run STATA Non-Interactive
Step 1
Log in to the Grid.
Step 2
Create a job script myStataJob.sh similar to:
#!/bin/bash
# Job name
#SBATCH --job-name Stata
# Submit to the Primary QoS
#SBATCH -q primary
# Request one node
#SBATCH -N 1
# Total number of cores
#SBATCH -n 8
# Request memory
#SBATCH --mem=5G
# Mail when the job begins, ends, fails, requeues
#SBATCH --mail-type=ALL
# Where to send email alerts
#SBATCH --mail-user=xxyyyy@wayne.edu
# Create an output file that will be output_<jobid>.out
#SBATCH -o output_%j.out
# Create an error file that will be error_<jobid>.out
#SBATCH -e errors_%j.err
# Set maximum time limit
#SBATCH -t 1:0:0
module load stata
stata myJobOutput.txt


- Press the Escape key and type
:wq to save and quit.
Step 3
To submit the job type sbatch myStataJob.sh
- Once the job is submitted you can check to see what node it is running on with the following command:
qme
