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
 
DB2 table cursor versus Flat file read performance

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

New User


Joined: 03 Sep 2008
Posts: 2
Location: UK

PostPosted: Thu Sep 11, 2008 4:28 pm    Post subject: DB2 table cursor versus Flat file read performance
Reply with quote

Hi,

We have tables that have millions of records. we need to read each record and produce the output based on specific values in some positions of each column data.

Is it faster to unload entire table into flat file and read each record and process the data or declare a cursor in program and read all records one by one and process the data.

I believe unload into flat file and process may be faster.

Please help me.
Back to top
View user's profile Send private message

XungoPejcao

New User


Joined: 04 Sep 2008
Posts: 5
Location: EspaƱa

PostPosted: Thu Sep 11, 2008 5:32 pm    Post subject: Reply to: DB2 table cursor versus Flat file read performance
Reply with quote

Hi!

If you do not have problems of storage, and you can use DASD, it is a better option unload the table to sequential file.
In case you had to use Tapes or Cartridge for problems of storage in the installation... probably if that serious better to access DB2 in cursor mode.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Sep 11, 2008 8:33 pm    Post subject:
Reply with quote

Hello,

Quote:
I believe unload into flat file and process may be faster.
It may be. It would be worth a test or 2.

Also, if there is a high volume of data to be processed, using the unload will take the overhead away from the database leaving those resources for other tasks rather than possibly contributing to a bottleneck.
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 Procopt G -concurrent Read balacsv2 IMS DB/DC 1 Mon Apr 23, 2018 5:03 pm
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am

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