Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
4 programs accesing the same table at the same time

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
sajjan jindal
Warnings : 1

New User


Joined: 09 Sep 2007
Posts: 60
Location: india

PostPosted: Sat Aug 08, 2009 12:17 pm    Post subject: 4 programs accesing the same table at the same time
Reply with quote

Hi,

I have a requirement such that the four programs could be accessing the table at the same time.

Is there any facility such that when one program accesses the table the other program will wait. (like suspend)

I was told that the program will fail with an error code of -904.

Regards,
Sajjan Jindal.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Aug 08, 2009 9:05 pm    Post subject:
Reply with quote

Hello,
Quote:


I was told that the program will fail with an error code of -904.

You were told wrong.

Quote:
I have a requirement such that the four programs could be accessing the table at the same time.

It is quite normal to have multiple online and batch programs accessing a common table at the same time. In fact, this is one of the biggest features of having a database. . .

Quote:
Is there any facility such that when one program accesses the table the other program will wait

If you are talking about batch jobs, schedule the jobs to not run concurrently. Your scheduling people will know how to do this.
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts COBOL declaration for table Poha Eater DB2 3 Mon Feb 26, 2018 6:58 pm
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 17 Sat Feb 17, 2018 4:20 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us