Re: job string/streams from within another job #2

Bruce Collins wrote:

> You just need a !pause job=!hplastjob;EXIST after each job to pause the
> calling job until the job completes.

....and do take care to make sure that the 'stream' before the 'pause' actually
worked :-)  there's few things are more head-smacking than to find out you're
pausing for the wrong job...

of course, its worth pointing out that the pause command may not support the
above example.  for folks on older releases of mpe you can mimic the same sort
of functionality with the following:

!setvar hpcierr 0
!stream myjob
!if hpcierr <> 0
!  setvar myjob_complete false
!  while not myjob_complete
!    tell !hplastjob
!    if hpcierr = 1619
!      setvar myjob_complete true
!    else
!      pause 30
!      setvar hpcierr 0
!    endif
!  endwhile
!#  handle the error

Donna Garverick     Sr. System Programmer
925-210-6631        dgarverick@longs.com

Come, my friends, 'Tis not too late to seek a newer world.
Tho' much is taken, much abides; and tho'
We are not now that strength which in old days
Moved earth and heaven, that which we are, we are.
"Ulysses", A. Tennyson

>>>MY opinions, not Longs Drug Stores'<<<

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

7/17/2003 5:46:54 PM
comp.sys.hp.mpe 25828 articles. 0 followers. rhorner (2) is leader. Post Follow

0 Replies

Similar Articles

[PageSpeed] 28