Partitions in DataStage - DB2UDB

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
kaps
Participant
Posts: 452
Joined: Tue May 10, 2005 12:36 pm

Partitions in DataStage - DB2UDB

Post by kaps »

Hi

Source is Sequential file
Target is DB2UDB table
AIX server

We have to insert huge amount of records(70 millions) as part of the initial load into a table. If the Target table is partitioned is there any way to route the records using DataStage to particular partition in DB2UDB database. Target table is what they call hash partitioned. As far as I understood I think this acts on a high cardinality field to figure out which partition to go to. There is an API in DB2 called sqlugrpn to determine the parition number. Is anyone used this API in DataStage ?
If so can you shed some light on how to use it ?

Thanks
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

You can use the DB2Load Stage. It has options to load partitioned database.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Another possibility, if you have it, is to use a parallel job, in which the DB2/UDB Enterprise stage is intimately cognizant of the DB2 partitioning algorithm.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply