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 

DB2 Unload - by partition

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


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Tue Nov 11, 2003 1:36 pm    Post subject: DB2 Unload - by partition Reply with quote

Hi,
I have a long running DB2 unload job (Using Platinum fast unload). I am aware of which partitions the data is residing in, Can I directly unload data from that partition ? and if so what is the syntax. Thanks
I am not able to get hold of a platinum manual, anyways following is my control card
FASTUNLOAD
LIMIT 0
LOAD-CONTROL DB2LOAD
OUTPUT-FORMAT DSNTIAUL
INPUT-FORMAT TABLE
DISPLAY-STATUS 1000000
IO-BUFFERS 60
VSAM-BUFFERS 360
SQL-ACCESS NONE
SHRLEVEL CHANGE
SELECT ......,
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Nov 11, 2003 6:35 pm    Post subject: Reply with quote

Suresh kumar,

You will need PART on your unload card to unload only a specfic partition.

Try this

Code:

FASTUNLOAD
LIMIT 0
LOAD-CONTROL DB2LOAD
OUTPUT-FORMAT DSNTIAUL
INPUT-FORMAT TABLE
DISPLAY-STATUS 1000000
IO-BUFFERS 60
VSAM-BUFFERS 360
SQL-ACCESS NONE
SHRLEVEL CHANGE
SELECT * FROM OWNER.TABLE1
PART 1
WHERE ...
AND ...


Note the part statement after the select statement. Here I am selecting only partition 1

Hope this helps...

cheers

kolusu

PS: check this link for FASTUNLOAD MANUALS
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Wed Nov 12, 2003 8:32 am    Post subject: Reply with quote

Thank you very much. The link to the manuals was also very helpful.
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