Subject: | |
From: | |
Reply To: | |
Date: | Tue, 20 Oct 1998 11:15:14 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Simonsen, Larry wrote:
>
> I seem to remember a command which would allow one job to wait for
> another job to complete. I thought that it was the pause command but, I
> cannot find the syntax for this.
> can some one point me into the right cave for this?
I'm not aware of a single MPE command that will do this, but you might
find the following helpful.
IF JSCOUNT("JOBNAME,GROUP.ACCOUNT&EXEC") > 0 THEN
PAUSE 300
will check if there is at least one copy of that job executing and pause
for 300 seconds if so. Put this in a WHILE loop and you can wait until
the job finishes. You can also use &SCHED, &WAIT etc as well as &EXEC.
If you want to make one job or session control the execution of another
job, the MPEX command PAUSEJOB will, I believe (haven't used it) let you
do that.
I hope this is of some help,
Chris Dunlop.
---------------------------------------------
Chris Dunlop - Management Information Systems
University of East Anglia, Norwich NR4 7TJ
[log in to unmask]
|
|
|