You can use any text editor to make the appropriate input files for Stata.
To Run Stata from the UCLA Grid Portal
To run Stata in batch from the UCLA Grid Portal click on the Job Services tab. Then click on Applications. If you have access to a cluster that has Stata installed, you can run it on that cluster. Enter the name of your Stata input files in the form that you have to fill out to run a Stata job.
To Run Stata from the Cluster Head Node using the Queue Scripts
The easiest way to run Stata in batch from the head node is to use the queue scripts. See Running a Batch Job on an ATS-Hosted Cluster for a discussion of the queue scripts and how they are used.
The following queue script is available for Stata:
- stata.q
To Run Stata from the Cluster Head Node Using SGE Comands
See Running a Batch Job on an ATS-Hosted Cluster for guidelines to follow to create the required SGE command file. Alternatively, you could create an SGE command file with the queue script listed above. After saving the command file, you can modify it if necessary. See Commonly-Used SGE Commands for a list of the most commonly used SGE commands.
To Run Xstata Interactively from the UCLA Grid Portal
To run Xstata interactively from the UCLA Grid Portal click on the Interactive tab. If you have access to a cluster that has Stata installed, you will see Xstata listed under the cluster's name. Set your web browser to allow pop-up windows from the grid portal. Click on Xstata under the name of the cluster. A pop-up window will appear with the Xstata GUI inside of it.
To Run Stata Interactively from the Cluster Head Node
To run Stata interactively with its GUI interface, you must first connect to the cluster head node with X11 forwarding enabled.
To run Xstata interactively with its GUI interface, enter:
xstataOr, for the muti-processor version of Xstata:
xstata-mpTo run Stata interactively without its GUI interface, enter:
stataOr, for the muti-processor version of Stata:
stata-mp