Stata/Batch

From ScientificComputing
Jump to: navigation, search

You can submit a Stata job (my_Stata_script.do) in batch mode with the following command:

sbatch [Slurm options] --wrap="stata -b do my_Stata_script.do"

or in the case of StataMP:

sbatch [Slurm options] --wrap="stata-mp -b do my_parallel_Stata_script.do"

Here you need to replace [Slurm options] with Slurm parameters for the resource requirements of the job. Please find a documentation about the parameters of sbatch on the wiki page about the batch system.