|
|
| Author |
Message |
feellikeneo
New User
Joined: 19 Mar 2007 Posts: 86 Location: Chennai
|
|
|
|
Hi All,
I have question over ENQ 'ing a resource in CICS.
In my CICS routine I'm ENQ 'ing a resource at the starting of my program. I have not specified any MAXLIFETIME, so it should by default take maxlifetime as UOW.
In this, if I issue a syncpoint inside my routine, will the ENQ 'ed resource be DEQ 'ed, or it would still be in control of my routine.
Appreciate your help ! |
|
| Back to top |
|
 |
References
|
|
 |
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 4221 Location: Atlanta, GA
|
|
|
|
From Chapter 1.75 ENQ in the CICS Language Reference manual, link at the top of the page:
| Quote: |
| If a task enqueues on a resource but does not dequeue from it, CICS automatically releases the resource during syncpoint processing (including DL/I, PCB, and TERM calls), or when the task is terminated. Option UOW forces the dequeue at the end of a unit of work (UOW). Option TASK forces the dequeue at the end of a task. If there are several units of work in a task, the enqueue carries over the UOWs. |
Is there some reason you could not do the manual research yourself? |
|
| Back to top |
|
 |
feellikeneo
New User
Joined: 19 Mar 2007 Posts: 86 Location: Chennai
|
|
|
|
I did go through this link, but could not relate it to my problem. Sorry that I am novice.
Going per the reference manual, they are saying, ENQ would be dequeued at the end of a UOW. Does issuing a syncpoint mean that it is end of one unit of work.
Thanks again. |
|
| Back to top |
|
 |
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 4221 Location: Atlanta, GA
|
|
|
|
| As the manual clearly states in the chapter I cited, the default for ENQ is UOW and syncpoint is one of the ways to end the enqueue -- which also ends the unit of work. |
|
| Back to top |
|
 |
|
|