If you want to execute batch job A-2, as soon as the batch job named A-1 finishes, please use the -hold_jid option to submit the job as shown below.
$ qsub -N A-1 MM.sh |
If you issue the qstat command afer submission, the status will be "hqw".