ARCHIVED: On the Quarry cluster, how do I submit a Stata batch job?
Note: After seven years of production service, Indiana University's Quarry research computing cluster was decommissioned January 30, 2015. IU students, faculty, and staff can request accounts on Karst, IU's newest high-throughput computing cluster; for instructions, see ARCHIVED: Requesting an account. User data on Quarry has not be removed; you can access your old home directory data on Quarry from your account on any other IU research computing resource (see Available access to allocated and short-term storage capacity on IU's research systems). All software modules that were available on Quarry are available on Karst. If you have questions or concerns about Quarry's retirement, or need help, contact the High Performance Systems group.
To submit a Stata batch job on the
Quarry cluster, create your Stata .do
file
(e.g., my_do_file.do
). Then, write a script file (e.g.,
my_job.script
) for TORQUE (also called PBS),
the resource manager on Quarry, as follows (replace
username
with your Network ID username):
#!/bin/bash #PBS -k o #PBS -l nodes=1:ppn=2,mem=1024mb,walltime=30:00 #PBS -M username@indiana.edu #PBS -m abe #PBS -N JobName #PBS -j oe stata -b do my_do_file.do
To submit the script file to TORQUE, enter:
$ qsub my_job.script
After the job is executed, you will receive email confirmation.
To check the status of your job, use either the qstat
or
showq
command.
You may see a log file (my_do_file.log
) in the default
directory. To save the output into a file, use the log
command in the .do
file.
Alternatively, you can run a Stata .do
file in a simpler
manner. Once a .do
file is ready, enter the following at
the Unix prompt:
$ stata -b do my_do_file.do
This command launches Stata and runs the .do
file. Stata
then prompts you for the next command. The -b
option
saves the output into my_do_file.log
.
If you have questions about using statistical and mathematical software at Indiana University, contact the UITS Research Applications and Deep Learning team.
Related documents
This is document awmf in the Knowledge Base.
Last modified on 2023-05-09 14:37:40.