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 Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm


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