Run sql block in DB2 ODBC plugin

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
DS1
Charter Member
Charter Member
Posts: 29
Joined: Wed Mar 29, 2006 1:13 pm

Run sql block in DB2 ODBC plugin

Post by DS1 »

Hello,

I am extracting data from DB2 database using ODBC Enterprise stage.

The DB2 source has given a sql block to pull the data.

Please tell me if there is anyway / anystage where in i can give the DB2 connection and run this sql block.

i could call it using a stored procedure stage but the source is not willing to include this on their database ..

please advice,

- DS
cppwiz
Participant
Posts: 135
Joined: Tue Sep 04, 2007 11:27 am

Post by cppwiz »

Can't you use the Read Method = User-defined SQL to manually insert your SQL block on your ODBC stage? Why use the ODBC stage instead of the DB2/UDB Enterprise stage?
Post Reply