|How to Use STATA at the FSU HPC|
You can run stata in three different ways: interactive on the compute nodes, interactive on the spear cluster and in a batch mode. In interactive mode on the compute nodes, 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. The spear nodes are good for using the gui version of STATA, however, only short jobs are allowed on the spear cluster.
You can make use of the gui version of STATA on the spear cluster, only the command line version stata and stata-mp are available for the compute nodes. 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: