Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Syncpoint and ENQ

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
Author Message
feellikeneo

New User


Joined: 19 Mar 2007
Posts: 86
Location: Chennai

PostPosted: Fri Jun 26, 2009 11:45 am    Post subject: Syncpoint and ENQ
Reply with quote

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
View user's profile Send private message
References
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 4260
Location: Atlanta, GA

PostPosted: Fri Jun 26, 2009 4:48 pm    Post subject:
Reply with quote

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
View user's profile Send private message
feellikeneo

New User


Joined: 19 Mar 2007
Posts: 86
Location: Chennai

PostPosted: Fri Jun 26, 2009 6:20 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 4260
Location: Atlanta, GA

PostPosted: Fri Jun 26, 2009 6:30 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1