Many versions of Stata are install on the ICER HPC. When you log-in, Stata is not available by default, but it may be load easily using this command (note you must type Stata with a capital 'S'
This loads Stata SE version 15. This is equivalent to using the command module load Stata/15.0.SE
Stata has a command line version and a GUI (windowed) version. To use the command line, type stata at the prompt. You will see this :
In which you may type Stata commands. Type 'exit' to quit this version.
To run a Stata do file from the command line in 'batch', you use the syntax
Stata comes in several versions: IC, SE, and MP; see https://www.stata.com/products/which-stata-is-right-for-me/ for details for the differences. Stata/IC has limitations on the numbers of variables that affect most users but has no licensing restrictions (see below). While the default version of Stata available when you load the module is Stata/SE, you currently have to use the command 'stata-se' to start the 'SE' version
However, to use the "MP" Version, you must load it explicitly.
Note that even if you load Stata/MP or SE module, as above, if you just use the command 'stata' it will load the IC version. To see which version of Stata you are current in, use the "about" command at the dot prompt. to use these special versions to run a bach do file, use stata-se and stata-mp instead of plain stata
For Stata/SE There are 15 licenses available, so 15 users may use it, for MP there are 5 user licenses of 8-cores each. Please exit the program when you are finished with it.
To use the GUI version, you must first be connected to HPCC with X11 forwarding ( MobaXterm for Windows, XQuartz for Mac - see ICER workshop set up instructions) or using a Remote Desktop Client (see Copy of Connecting with a Remote Desktop Client ) . Once an X11 or remote desktop client is connected, you can run xstata on a dev node:
Even if you load the MP or SE versions, Stata limits the number of variables to 5000 unless you tell it otherwise. For information use the help set_maxvar command at the dot prompt. You can set the maxvar for your session or in your do file with (for example to 6000)
There are other settings related to memory usage which are important as Stata attempts to be very conservative. For more information use the Stata "memory" command
Note you must use the command line version inside a sb script when running jobs. To copy a working example of Stata job file into your home directory, you can use our getexample tool