IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

COBOL Table loading


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

New User


Joined: 10 Dec 2012
Posts: 37
Location: India

PostPosted: Tue Nov 26, 2013 3:17 pm
Reply with quote

which is better?

Loading a cobol table using a CUSOR in DB2 embedded COBOL programe?

OR

Loading a cobol table by reading a file.

This is a generic question.. So any generic views can be told..

the table has a maximum of 1K - 5K elements. - 1 dimensional with elementary items, not group..
Back to top
View user's profile Send private message
TheMFKid

New User


Joined: 20 Nov 2013
Posts: 91
Location: India

PostPosted: Tue Nov 26, 2013 3:31 pm
Reply with quote

If the data required resides in DB2 table, then reading DB2 table is better. If the data required resides in file, then reading file is better.. icon_neutral.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19251
Location: Inside the Matrix

PostPosted: Tue Nov 26, 2013 8:21 pm
Reply with quote

Hello,

First - the duplicate topic has been removed.

When loading a table, it is far more efficient to actually LOAD the table. Reading individual bits of data (wherever they are) and then INSERTing into new rows is most expensive.
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

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts COBOL Performance Tuning COBOL Programming 6
No new posts JCL for replacing code in Cobol JCL & VSAM 8
No new posts COBOL VS SORT Utility for file format... COBOL Programming 6
No new posts XML Parsing in COBOL creating "h... COBOL Programming 0
No new posts Calling Rexx program from Cobol CLIST & REXX 12

Back to Top