Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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
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    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

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8118
Location: East Dubuque, Illinois, USA

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: 73
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: 8118
Location: East Dubuque, Illinois, USA

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to place SYNCPOINT in VSAM . ShobhitVerma10april CICS 2 Thu Jul 03, 2014 11:14 am
No new posts TWA variable having junk value after ... Gopalakrishnan V CICS 1 Tue May 13, 2014 7:59 pm
No new posts Understanding Syncpoint : sreelu.s CICS 3 Sat Jul 13, 2013 1:57 am
No new posts Error in CICS SYNCPOINT ROLLBACK enrico-sorichetti CICS 4 Thu Mar 31, 2011 6:22 pm
No new posts Query on SYNCPOINT and SYNCORETURN abhijit.nayak01 CICS 2 Mon Jan 24, 2011 4:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us