If you wish to use Stata on one of the computational clusters then you will need to load the version of Stata that you wish to use via module command. Then to run your Stata script you need the following line in your PBS script at the end after crafting the rest of it using the information on the HPC web site.
stata -b do StataClusterWorkshop.do
If you wish to load or install additional Stata modules or commands you should use findit command on your local computer to find the command that you are looking for. Then create a directory called
myadofiles in your cluster home directory and copy the .ado (and possibly the .hlp) file into that directory. Now that the command is there it just remains to tell Stata to look in that directory which can be done by using the following Stata command.
sysdir set PERSONAL /home/myadofiles.
An example of a Stata PBS Script is given below.