On Tue, 10 Feb 2009 16:29:40 -0500, Dave Salt <[email protected]> wrote:
>I'm trying to help someone create a process that will automatically submit several jobs at a time. For example, it might submit 20 jobs right after each other, with only a fraction of a second between each job. It's very important that the jobs execute in the same sequence in which they were submitted. For example, if the automated process submits jobs AAA, BBB and CCC, then job AAA must finish executing before job BBB begins to execute (and so on). > <snip> >Thanks in advance for any suggestions! > > >Dave Salt JES3 DJC will do this. JES2 does not guarantee this run-order, but it will often work out that way in a single system environment with a single JCL converter. What I usually do is to have the last step of each job look like: //SUBNEXT EXEC PGM=IEBGENER,COND=EVEN //SYSIN DD DUMMY //SYSUT2 DD SYSOUT=(*,INTRDR) //SYSUT1 DD DATA,DLM='$$' The next job then follows the last JCL card above. This allows job "n+1" to be submitted as the last step of job "n". Works for me. I use '$$' because that has never been in any of my in-stream data. Choose one that works for you. -- John ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

