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

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


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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: 2358
Location: Israel

PostPosted: Tue Sep 05, 2006 10:45 am
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
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: 2358
Location: Israel

PostPosted: Tue Sep 05, 2006 11:19 am
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
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: 2358
Location: Israel

PostPosted: Tue Sep 05, 2006 11:47 am
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
Search our Forums:

Back to Top