View previous topic :: View next topic
|
Author |
Message |
anilbatta
New User
Joined: 13 Nov 2005 Posts: 22
|
|
|
|
I have one requirement. The requirement is as follows:
1. I need to extract the data from DB2 table and put that information in a VSAM file. But my DB2 table contains millions of records.
In this case, please suggest how I go for CURSOR operation or Unload utility to unload the data from a table to a flat file and use this flat file as an input rather than using DB2 table as an input.
Performance wise which option is the best?
Regards
Anil |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
This is the book name for the VSN 7 db2 utilities guide: dsnugh11
you can find that or others using this search of the IBM bookmanager site, so that you can download (or look at) the version appropriate for your site: publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/FINDBOOK?filter=DB2&SUBMIT=Find&Collection=0
unload is pretty straight forward, and yours is an easy request since you are dumping the all columns.
if, after having put some effort into an attempt, you still have problems, come on back.
Using the Unload utility and a vsam repro would be the fastest to develope. Probably quickest to run. |
|
Back to top |
|
|
|