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
 

 

COBOL-DB2 program or JCL LOAD-REPLACE utility

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Sagar_mainframe

New User


Joined: 07 Jun 2008
Posts: 34
Location: Harrisburg, Pennsylvania

PostPosted: Thu Apr 28, 2011 8:02 pm    Post subject: COBOL-DB2 program or JCL LOAD-REPLACE utility
Reply with quote

If I have to delete all exixting rows and load new data the table with around 50,000 rows daily.Which approach will be faster??

COBOL-DB2 program or JCL LOAD-REPLACE utility

Also I want to know which approach will NOT LOCK the table while deleting and inserting records.
Back to top
View user's profile Send private message

Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Apr 28, 2011 8:13 pm    Post subject:
Reply with quote

DB2 load utility as it is ment to do that... but I did not understand what you are trying to say by this..
Quote:
which approach will NOT LOCK the table while deleting and inserting records
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 662
Location: Pennsylvania

PostPosted: Thu Apr 28, 2011 8:23 pm    Post subject:
Reply with quote

I agree the load utility is designed for that, but at 50,000 records, Cobol would not be that long.

The Load utility may put the table into check pending status, a situation you will need to rectify (reset the flag). If this happens, the table is not 'locked' but it can not be accessed until the check pending flag is reset.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1787
Location: UK

PostPosted: Thu Apr 28, 2011 11:04 pm    Post subject:
Reply with quote

Quote:
COBOL-DB2 program or JCL LOAD-REPLACE utility

Do you mean JCL COBOL-DB2 program or LOAD-REPLACE utility?
Back to top
View user's profile Send private message
Sagar_mainframe

New User


Joined: 07 Jun 2008
Posts: 34
Location: Harrisburg, Pennsylvania

PostPosted: Fri Apr 29, 2011 12:20 pm    Post subject: Reply to: Which one is faster??
Reply with quote

I have to load around 50000 rows daily and delete the existing rows before loading.

1st approach: JCL-COBOL-DB2 pogram - First delet the records and then read the file and insert the record. Finally commit all the records.

2nd approach: JCL- Load-replace utility - This will also delete the records and replace it with new records.


So out of these two approaches which one is faster?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Fri Apr 29, 2011 2:18 pm    Post subject:
Reply with quote

2nd approach is much quicker.

and db2 does not have records, it has rows.

if you would learn correct terminology and use it in your conversations,
you would get where you want to go, quicker.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 - TERMINATE utility vasanthz DB2 5 Mon May 15, 2017 11:49 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm


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