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
 

 

Controlling usage of resources by tasks

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
raja1128

New User


Joined: 09 Jan 2007
Posts: 17
Location: india

PostPosted: Fri Nov 06, 2015 9:53 am    Post subject: Controlling usage of resources by tasks
Reply with quote

Hi all,

There are multiple tasks and one db2 table.
At any point of time only one task should access the table.
How this can be achieved?

I read the posts and learnt that it can be done using ENQ, DEQ. Is there any other way in cics?

Pls help.
Thanks.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri Nov 06, 2015 10:24 am    Post subject: Reply to: Controlling usage of resources by tasks
Reply with quote

put all the transactions that access that table
in a class that is single threaded,
==> allows just one to run and cics will take care of it
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Fri Nov 06, 2015 1:45 pm    Post subject:
Reply with quote

Also did you try to exclusive lock the table?
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Fri Nov 06, 2015 8:54 pm    Post subject:
Reply with quote

Quote:
I read the posts and learnt that it can be done using ENQ, DEQ. Is there any other way in cics?

Why,did you not like it or you don't know how to implement?
What if someone modifies the program when you ain't there and then add more files or tables then the Unit of Work is a mess so I advise you to use proper transaction sequencing (ENQ) when you hits millions of trx a day.
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 can amount of the Storage Usage b... esduman61 CICS 6 Wed Mar 09, 2016 1:19 pm
No new posts TDQ & its usage as ATI akodakka CICS 3 Sat Oct 17, 2015 6:04 pm
No new posts XPED - When command usage anand1204 Compuware & Other Tools 3 Tue Sep 15, 2015 12:50 am
No new posts Usage of NETRC for FTP step in JCL Vineetha_123 JCL & VSAM 3 Fri Jul 17, 2015 3:24 pm
No new posts CICS ENQ RESOURCE - Multiple Tasks - ... mak_tcs CICS 2 Fri Jul 17, 2015 2:29 pm


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