I am having a similar problem: I want to specify a sequence of dependencies for my jobs, e.g.:
ArrayA=$(sbatch --array=1-100 a.sh)
ArrayB=$(sbatch --array=1-1000 --dependency=aftercorr:[$ArrayA_0, $ArrayA_0, ..., $ArrayA_99] b.sh)
(With 997 more jobs on the dots, in this case the first 10 jobs of B wait for the first job of A, next ten on the second...)
But Slurm does not seem to want to allow this?