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
 
Updating online Db2 table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
kishpra

New User


Joined: 24 May 2010
Posts: 92
Location: Pune

PostPosted: Fri Aug 12, 2016 2:44 pm    Post subject: Updating online Db2 table
Reply with quote

Hello Team,

I have a requirement to read a flat file and update the DB2 table which is used by online screes/transactions 24x7. The number of records to be updated is around 1 million.
Kinldy let me know the approach for this. Do we need to write a Cobol-DB2 program or a DB2 stored procedure.

Any sample POC would be appreciated.

Thank you.
Back to top
View user's profile Send private message

don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 662
Location: Whitby, ON, Canada

PostPosted: Fri Aug 12, 2016 6:33 pm    Post subject:
Reply with quote

If I was asked to do this, I would write a Cobol-DB2 program that takes frequent Commits. I would write it to be checkpoint restartable.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1885
Location: NY,USA

PostPosted: Fri Aug 12, 2016 7:58 pm    Post subject:
Reply with quote

I would rather do a load replace because( I am sure you have full population in that flat file )with share level change which means you have no worries with online queries as the underlying LDS for online is untouched. OR see if this works, We have some process where we create a another same table which is secondary one and load all the data from online table once you complete your work on secondary table then flip the names so that then secondary becomes primary and vice versa.
Back to top
View user's profile Send private message
RahulG31

Active User


Joined: 20 Dec 2014
Posts: 417
Location: USA

PostPosted: Fri Aug 12, 2016 8:49 pm    Post subject: Reply to: Updating online Db2 table
Reply with quote

I agree with don. It needs to be a COBOL-DB2 program with frequent commits. But I don't think it needs a restart capability.

This program, I suppose, is going to be a one time only and we can always write the update query in such a way that it doesn't update the already updated values. So, no need for an extra restart coding.

.
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 COBOL declaration for table Poha Eater DB2 3 Mon Feb 26, 2018 6:58 pm
No new posts OLDS frozen in BACKOUT status when On... lind sh IMS DB/DC 3 Tue Feb 13, 2018 7:12 pm
No new posts load and delete table through JCL wit... ram_vizag JCL & VSAM 9 Thu Feb 01, 2018 12:47 am

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