0

Here is my sbatch file:


#!/bin/bash
#SBATCH --output=stata_example.out
#SBATCH --error=stata_example.err
#SBATCH --nodes=1

module load stata
stata do stata_example.do

But it always returns with error: stata: command not found. I have tried with "stata-mp" or "stata-se" "stata-ic", or "stata -b stata_example.do". but it returns same error information. Can anyone help with that?

1 Answers1

0

Even if you type in module list and Stata comes up, you may need to identify the appropriate path.

In my case, it is module load sloan/stata/15/mp

I would suggest you contact the administrator to find out what the appropriate path is.

Nick Cox
  • 35,529
  • 6
  • 31
  • 47
sbecon
  • 79
  • 10