View previous topic :: View next topic |
Author |
Message |
haritha_e Beginner
Joined: 30 Jan 2007 Posts: 14 Topics: 8
|
Posted: Wed Dec 05, 2007 9:45 am Post subject: Unload specific columns using DB2 Unload |
|
|
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 |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
|
Back to top |
|
 |
haritha_e Beginner
Joined: 30 Jan 2007 Posts: 14 Topics: 8
|
Posted: Wed Dec 05, 2007 9:55 am Post subject: |
|
|
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 |
|
 |
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Wed Dec 05, 2007 10:43 am Post subject: |
|
|
Just add the column list to the "UNLOAD LIST UNLDLIST " command. |
|
Back to top |
|
 |
haritha_e Beginner
Joined: 30 Jan 2007 Posts: 14 Topics: 8
|
Posted: Wed Dec 05, 2007 10:56 am Post subject: |
|
|
craig,
thanks for the reply. can you provide me with an example? |
|
Back to top |
|
 |
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Wed Dec 05, 2007 11:24 am Post subject: |
|
|
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 |
|
 |
|
|