IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Syncpoint and ENQ


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
feellikeneo

New User


Joined: 19 Mar 2007
Posts: 73
Location: Chennai

PostPosted: Fri Jun 26, 2009 11:45 am
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
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 26, 2009 4:48 pm
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: 73
Location: Chennai

PostPosted: Fri Jun 26, 2009 6:20 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 26, 2009 6:30 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts MQPMO-NO-SYNCPOINT Java & MQSeries 19
No new posts How to place SYNCPOINT in VSAM . CICS 2
No new posts TWA variable having junk value after ... CICS 1
No new posts Understanding Syncpoint : CICS 3
No new posts Error in CICS SYNCPOINT ROLLBACK CICS 4
Search our Forums:

Back to Top