>Is it legal for the ESTAEX exit code to WAIT on one of those ECBs? 
Any code in a suitable environment (e.g., it can't be disabled) can wait 
on anything that is of a suitable key and is not already waiting. If 
already waiting, wait abends.

> Is it possible to cancel a WAIT?
I call that "post".

If you are waiting on an ECB list with a count of "n" and the nth ECB is 
posted, then the post processing will unwait the other ECBs (i.e, turn off 
the wait bit).  That makes it so that when you "wake up" from the wait, 
you can re-enter the wait. The unwaiting does not happen if you were 
waiting and then "blew up" (perhaps by a cancel or an abending IRB). But 
you are of course not truly waiting any longer.

An ECB marked waiting is managed by post. Post might be keeping track (it 
has a "wait post request block" to track things for unauthorized 
wait/post); even if you have the local lock and update the ECB you would 
be creating a mismatch between the state that the system expects and 
reality. That could be problematic. 

Another "option" you could consider: use an RMTR for your ATTACH and have 
the RMTR post an ECB that is not the ECB specified on ATTACH (if using an 
RMTR you probably wouldn't use an ECB on ATTACH at all).

Peter Relson
z/OS Core Technology Design


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to