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: 668
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: 1823
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: 6968
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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts How to Use DebugTool CodeCoverage Uti... neo4u IBM Tools 0 Thu Jun 22, 2017 6:38 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm


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