> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of David Cole
> Sent: Friday, May 23, 2008 3:25 AM
> To: [email protected]
> Subject: Controlling the execution sequence of dependant jobs in JES2
> 
> Hi,
> 
> I have a process that submits up to a couple of hundred jobs for 
> execution. I require that these jobs execute in the same order in 
> which they were submitted.
> 
> For decades I have accomplished this by assigning all of the jobs to 
> a specific job class and then insuring that there was never more that 
> one initiator that had that job class assigned.
> 
> I am now running at a new data center. (Guess where...) And I have 
> just discovered that my jobstream is running out of sequence. For 
> some reason, my single-threading initiator is selecting jobs from the 
> input queue out of sequence.
> 
> Is there an "official" way to enforce job execution sequencing?
> 
> TIA
> 
> Dave Cole              REPLY TO: [EMAIL PROTECTED]

What I do is have the last step of one job submit the next job in the
series. JES2 does not have DJC. JES3 does. Converting to JES3 is not
likely a valid option <grin>.

//JOB1 JOB ...
//* LOTS OF STEPS
//SUBMIT EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=Z
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSUT1 DD DATA,DLM='$$'
//JOB2 JOB ...
//* LOTS OF STEPS
//SUBMIT EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=Z
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSUT1 DD DATA,DLM='$$'
//JOB3 JOB ...
//* AND SO ON
$$
//

If you prefer, the SYSUT1 can point to a member of a PDS, sequential
file, UNIX file, ...

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.  

----------------------------------------------------------------------
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

Reply via email to