On Mon, 11 Feb 2008 16:48:59 +0100 "Vernooy, C.P. - SPLXM"
<[EMAIL PROTECTED]> wrote:

:><[EMAIL PROTECTED]> wrote in message
:>news:<[EMAIL PROTECTED]>.
:>..
:>> I have this LPAR that has 3 CPUs on it.  I also have a program that
:>> wants
:>> to fire off, say 8 tasks.   I fire off the first 3 with an ATTACH.  I
:>> can wait on
:>> them with a WAIT 3,ECBLIST=etc
 
:>> However, that construct will put my main program (parent task) to
:>> sleep
:>> until all the (child) tasks come back.
 
:>> What I really want to do, is to, once any one of the child tasks
:>> finishes,
:>> to fire up a new task immediatly.
 
:>> Any thoughts or suggestions will  be appreciated.

:>Have a look at the EVENTS macro, this will do what you want.

Or he can

    WAIT 1,ECBLIST=

which will wake up as soon as any of the ECBs are POSTed.

--
Binyamin Dissen <[EMAIL PROTECTED]>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

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