Datastage and Stored Procedure

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
shiva459
Premium Member
Premium Member
Posts: 100
Joined: Wed Jun 11, 2003 1:49 am
Location: Bangalore

Post by shiva459 »

As far as my knowledge goes DS does'nt support out parameters.

Regards

Shiv
trobinson
Participant
Posts: 208
Joined: Thu Apr 11, 2002 6:02 am
Location: Saint Louis
Contact:

Post by trobinson »

If you are passing the stored procedure correctly, DataStage is oblivious to what happens within the stored procedure. What is the error you are getting? Is it an Oracle error? Depending on your need you could define the stored procedure parameter as INOUT. However, you'll never get anything out. Oracle stages are one-way. In or out. (Input or Output) They are not both. If you want A (single) value out, then you can get around this by encapsulating your stored procedure into a function call and calling via a reference lookup in a User defined SELECT. You could get multiple values via an array function return but that's got to be way too much work. By the way, doing a stored procedure call in the OCI stage is Unsupported. It works but you'll need to do it in ODBC if you want Ascential Support.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try increasing your transaction isolation level.

Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
trobinson
Participant
Posts: 208
Joined: Thu Apr 11, 2002 6:02 am
Location: Saint Louis
Contact:

Post by trobinson »

I doubt it. Datastage has no reason to default a stored procedure call transaction to read only. Did you try the stored procedure from SQLPlus? Were the results the same? It appears to me to be an Oracle issue.
Post Reply