Do unload multiple partitions are not consecutive in nature?

RDBMS from IBM and IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Post Reply
Sharath Kumar
New Member
Posts: 4
Joined: Wed Aug 20, 2014 2:57 pm

Do unload multiple partitions are not consecutive in nature?

Post by Sharath Kumar »

Hello,

Can we do an unload of multiple partitions in consecutive order? As of now I have to make two separate unload for each partition. What I know is that if the partitions are consecutive then we can do it but if I need to do the unload of partition 10 and 12, can I do it with a single unload? Help please.
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Do unload multiple partitions are not consecutive in nat

Post by zprogrammer »

When you say single unload is it one UNLOAD command or one output file?
zprogrammer
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Do unload multiple partitions are not consecutive in nat

Post by Anuj Dhawan »

Hello,

Make use of LISTDEF with partitions, like this:

Code: Select all

LISTDEF UNLDLIST 
INCLUDE TABLESPACE TDB1.TSP1 PARTLEVEL(10) 
INCLUDE TABLESPACE TDB1.TSP1 PARTLEVEL(12)
This link shows some examples on LISTDEF, have a look: http://www-01.ibm.com/support/knowledge ... mples.dita
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Sharath Kumar
New Member
Posts: 4
Joined: Wed Aug 20, 2014 2:57 pm

Re: Do unload multiple partitions are not consecutive in nature?

Post by Sharath Kumar »

Thank you Anuj.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DB2 and IMS DB/DC”