Array Jobs
Sometimes, you want to run a number of mostly identical jobs with the only difference of input parameters or data sets. Instead of submitting each as independent jobs, you could submit an Array Job. Grid Engine provides this feature to help users easily manage job series by one command.
You may have done the following operations before
$ qsub job.sh data.1 $ qsub job.sh data.2 ... $ qsub job.sh data.100
Writing a script to submit in a loop is a good solution. But you may also need prepare loop script to stop or cancel those jobs once you find something wrong after the jobs running. Array Job help you save these trouble as you can submit, stop and delete jobs with just one command.
Use the following command to submit an array job.
$ qsub -t 1-100 job.array.sh data
job.array.sh looks like
#!/bin/sh job.sh $1.$SGE_TASK_ID