Put Code in Sbatch Script or Separate File?

I have a bash script that I want to use for my job. Do I simply copy the code from the bash script and paste it in the sbatch script or do I call the bash script from the sbatch script?

You can call your script from inside the sbatch job script, or put all the commands inside the sbatch job script. Both methods are commonly used. My personal preference is to keep my sbatch script and the code I’m running separate.