|How to Use STATA at the FSU HPC|
You can run stata in two different ways: interactive and in a batch mode. In interactive mode, you will be logged on to one of the compute nodes and type the stata commands like you would type them on your computer. This is a good way for troubleshooting, however, you have to stay logged in while running. In batch mode, you submit your job to the system and it will run independently and is good for long running programs.
Currently, you can not make use of the gui version of STATA, only the command line version stata and stata-mp. To use the STATA binaries you must setup the environment for STATA:
module load stata
The stata binaries are:
For interactive use of STATA, use the following command on an HPC login node:
msub -I -q stata_q
This command will connect you to a node where STATA is installed.
The following is an example of a batch job running STATA via MOAB with a do-file called sample.do.
#!/bin/bash #MOAB -q stata_q #MOAB -N MYSTATAJOB #MOAB -j oe module load stata stata -b do sample.do
If you save this file as job.sh, you can submit it using this command on your login node: