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: 660
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: 1756
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: 6966
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 TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm


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