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 Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


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