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
 
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: 6970
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 File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am

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