IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Unload utility from table to a flat file


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

New User


Joined: 13 Nov 2005
Posts: 22

PostPosted: Mon Jul 14, 2008 7:03 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Jul 14, 2008 9:01 pm
Reply with quote

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
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

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top