> -----Ursprungligt meddelande-----
> Från: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] För
> Scott Fagen
> Skickat: den 9 februari 2010 19:47
> Till: IBM-MAIN@bama.ua.edu
> Ämne: Re: About ENQ - some basic questions
>
> On Tue, 9 Feb 2010 16:49:05 +0100, Thomas Berg <thomas.b...@swedbank.se>
> wrote:
> -snip-
> >But if You e g do an allocation in the same rexx its ENQ is kept
> >thru the entire TSO session or until You free the dataset.
> >Does this mean that the ENQ in this case is assigned to the main
> >task (TSO) or is there another mechanism in work ?
> -snip-
>
> Allocation ENQs are assigned to the JSTCB which is not necessarily the
> task
> that issued the DYNALLOC/SVC 99.
>
> REXX is blissfully unaware of ENQs issued by utilities that it calls.
> Each
> has its own semantic for dealing with the release of the ENQ.
>
> Scott Fagen
> CA Mainframe BU

I interpreted the text in Assembler Services Reference:

ENQ assigns control of one or more serially reusable resources to a task. If 
any of the resources are not available, the task might be placed in a wait 
condition until all of the requested resources are available. Once control of a 
resource has been assigned to a task, it remains with that task until one of 
the programs running under that task issues a DEQ macro to release the resource 
or the task terminates.

..that it's inherent to the ENQ function to release itself at end of the task.
Did I misunderstood this ?  How do You control which task the ENQ is assigned 
to ?

TIA



Regards,
Thomas Berg
__________________________________________
Thomas Berg   Specialist   IT-U   SWEDBANK






----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to