Datastage and UDB / DB2 stored procdures

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
guidomarcel1
Participant
Posts: 10
Joined: Fri Feb 20, 2004 4:25 am

Datastage and UDB / DB2 stored procdures

Post by guidomarcel1 »

Hi,
is it possible to call a UDB / DB2 stored procedure with Datastage v7? It seems that the stored procedure stage is only foreseen for the database vendor ORACLE.

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

Post by DSguru2B »

Depends upon what kind of stored procedure it is. If all you need to do is fire the stored procedure without any in, inout or out parameters then you can do it in db2 api stage (in the before/after sql tab)
IF the stored procedure has in and inout parameters, you can use the odbc stage (read the documentation for this stage in regards to st. procedures. It has limitations)
The STP stage just supports Oracle. If you read the documentation of STP stage it very clearly says there that any other relational database could be provided via job parameters during run time. I tried that. It came back with an error. I took that error back to IBM, they said that the statement in the STP stage that the database name can be provided via job parameter during runtime doesnt hold true if its not Oracle.
So bottom point, STP stage wont work at all. But if you upgrade to 7.5.2, the STP stage in that version does support DB2.
Hope my info helped.
Regards,
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
guidomarcel1
Participant
Posts: 10
Joined: Fri Feb 20, 2004 4:25 am

Post by guidomarcel1 »

Thanks for your answer. I will run a DB2 stored procedure without any in, inout, out parameters. I will try to do it with the DB2 API stage in the before section.

Regards
GuidoMarcel
Post Reply