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

4 programs accesing the same table at the same time


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Sat Aug 08, 2009 9:05 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top