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
 

 

Unload utility from table to a flat file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Unload utility from table to a flat file
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    Post subject:
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: http://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    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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


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