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
 

 

How can I ensure that only 1 user picks up 1 record?

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

New User


Joined: 05 Sep 2006
Posts: 6

PostPosted: Tue Sep 05, 2006 7:59 am    Post subject: How can I ensure that only 1 user picks up 1 record?
Reply with quote

Problem: I have a cursor in my CICS program. This screen is being accessed by multiple users.

Question: How can I ensure that only 1 user picks up 1 record?
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Sep 05, 2006 10:45 am    Post subject:
Reply with quote

VSAM? DB2? TS Queue? TD Queue? IMS? ADABAS?

O.
Back to top
View user's profile Send private message
piglet

New User


Joined: 05 Sep 2006
Posts: 6

PostPosted: Tue Sep 05, 2006 11:03 am    Post subject:
Reply with quote

It is for DB2
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Sep 05, 2006 11:19 am    Post subject:
Reply with quote

Ok, now for the second question: What do you mean by "picks up"? For read only? For update?

O.
Back to top
View user's profile Send private message
piglet

New User


Joined: 05 Sep 2006
Posts: 6

PostPosted: Tue Sep 05, 2006 11:32 am    Post subject:
Reply with quote

it is for update
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Sep 05, 2006 11:47 am    Post subject:
Reply with quote

As far as I know, one of DB2's roles as RDBMS is to ensure that only one record can be updated in single point of time.

O.
Back to top
View user's profile Send private message
piglet

New User


Joined: 05 Sep 2006
Posts: 6

PostPosted: Tue Sep 05, 2006 11:55 am    Post subject:
Reply with quote

That is right.

But when the records are being fetched from the DB2 tables, there is a possibility of 2 people getting the same record.
Back to top
View user's profile Send private message
jajuhby

New User


Joined: 05 Sep 2006
Posts: 2

PostPosted: Tue Sep 05, 2006 11:55 am    Post subject:
Reply with quote

Hi everybody,

I also have the exact same problem: I need to be able to serialize access/rights to the database table for every task currently running. That way, if, for example, several people perform an action (at almost the same time) that requires a write or a read from one database table, these database transactions will be processed correctly (ie, one at a time, in the correct order).

I was told that the CICS ENQ/DEQ commands will help achieve this. Does anyone know how to use these commands in conjunction with database tables?
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 Record Not found in AlX but record re... mukun264 COBOL Programming 7 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts User Cancels the job PANDU1 DB2 1 Sat Mar 04, 2017 8:21 pm


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