MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Unload specific columns using DB2 Unload

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
haritha_e
Beginner


Joined: 30 Jan 2007
Posts: 14
Topics: 8

PostPosted: Wed Dec 05, 2007 9:45 am    Post subject: Unload specific columns using DB2 Unload Reply with quote

Hi All,

We normally unload the partitions for a particular table using the following statements. Using this we can unload all the columns, but can anyone let me know whether we can unload only specific columns using the below approach(not sql unload using DSNTIAUL).

LISTDEF UNLDLIST
INCLUDE TABLESPACE TDB1.TSP1 PARTLEVEL(1)
INCLUDE TABLESPACE TDB1.TSP1 PARTLEVEL(3)
TEMPLATE UNLDDS DSN &USERID..SMPLUNLD.&TS..P&PART.
UNIT SYSDA DISP (NEW,CATLG,CATLG) SPACE (2,1) CYL
UNLOAD LIST UNLDLIST -- LIST name
UNLDDN UNLDDS -- TEMPLATE name

Thanks
Haritha
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Wed Dec 05, 2007 9:51 am    Post subject: Reply with quote

Haritha,

You can acheive this using DSNTIAUL utility.

Check the below links.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAPH11/APPENDIX1.3.1?DT=20010710165542
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNUG0F6/CCONTENTS?DT=20000421183700
Back to top
View user's profile Send private message Send e-mail
haritha_e
Beginner


Joined: 30 Jan 2007
Posts: 14
Topics: 8

PostPosted: Wed Dec 05, 2007 9:55 am    Post subject: Reply with quote

Hi Phani,

I wanted to use the Template approach not the one you have mentioned. We have to unload the partitions using the template command.

Thanks
Haritha
Back to top
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Wed Dec 05, 2007 10:43 am    Post subject: Reply with quote

Just add the column list to the "UNLOAD LIST UNLDLIST " command.
Back to top
View user's profile Send private message
haritha_e
Beginner


Joined: 30 Jan 2007
Posts: 14
Topics: 8

PostPosted: Wed Dec 05, 2007 10:56 am    Post subject: Reply with quote

craig,

thanks for the reply. can you provide me with an example?
Back to top
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Wed Dec 05, 2007 11:24 am    Post subject: Reply with quote

haritha_e wrote:
craig,

thanks for the reply. can you provide me with an example?

It's in the DB2 Utilities Manual.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group