|
You could have a job run in the subsystem which exclusively allocates
a data area and another job (in a different subsystem) which waits
until that data area is free, which will happen when the first job
ends because the subsystem has ended.
something like this:
PGM
ALCOBJ OBJ((MYDTAARA *DTAARA *EXCL))
SBMJOB CMD(CALL PGM(MONITORJOB)) JOB(MONITOR) +
JOBQ(OTHERJOBQ)
WAIT:
DLYJOB DLY(999999)
GOTO CMDLBL(WAIT)
ENDPGM
On Wed, Feb 2, 2011 at 10:09 AM, Dennis wrote:
I have done this in the past by monitoring QHST for the CPF0995
and/or CPF0927 messages associated with Subsystem end. Of course,
such monitors need to run in a different subsystem from the one
that has your interest.
"Jason Abreu"<jason.abreu@xxxxxxxxxxxxxxxxxxxx> wrote:
Thank you all for the very quick response about the ADDAJE
command and the note about modifying the JOBD.
Any notes about running a job when a subsystem is ended?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.