HP3000-L Archives

October 1998, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Chris Dunlop <[log in to unmask]>
Reply To:
Chris Dunlop <[log in to unmask]>
Date:
Tue, 20 Oct 1998 11:15:14 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
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]

ATOM RSS1 RSS2