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

How to put DB2 wait time ?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amalraj_ece

New User


Joined: 16 Jul 2006
Posts: 21
Location: delhi

PostPosted: Thu Nov 22, 2007 3:17 am
Reply with quote

My requirements are as follows
1. Update a table (after 20 rows put a Commit stmt)
2. After each commit, wait for one minute and resume the transaction and that should run for one hour (not greater than or less than one hour)

My question is "are we having any cobol syntax to put DB2 wait time for a minute? "Please let me know if you have an idea
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Nov 22, 2007 5:10 am
Reply with quote

The wait one minute and run for exactly one hour requirement seems completely arbitrary though and pointless. This seems like homework, I can't see a business doing this run for only one hour crap. It doesn't account for differences in the data size or a starvation of resources for the job.

What if all the rows aren't in after an hour or you run out of rows in that hour. Are we talking an hour of CPU time or an hour of wall time? What if the job starts and the system is so loaded down that your job doesn't get any CPU for over an hour? Has the program actually met the hour run time requirement? And, if it doesn't get any CPU time at exactly that hour mark and therefore can't end at exactly an hour are you going to lose points on the assignment?

There is no DB2 wait time, you need to build this into your COBOL logic. You will also increase the CPU time of your program for no reason other than to introduce a wait period and that increases costs to your business.

I seem to be asking more questions of the posters lately than giving answers...
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 To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
Search our Forums:

Back to Top