Hi All,
I created a procedure that recieves an integer and returns an Integer.
I'm trying to call the procedure vie stored procedure job and write the output into an Oracle table.
It keeps failing with the message of :'Second output column must be a Procedure return message'
What am I doing wrong ?
I have defined the 'Stored Procedure' as transform and gave each parameter and assigned target column.
Any suggestions ?
Recieving a parameter from a stored procedure
Moderators: chulett, rschirm, roy
Recieving a parameter from a stored procedure
Best Regards,
Lando
Lando
Re: Recieving a parameter from a stored procedure
Just to confirm are you actually using the stored procedure stage or have you written a job which gets data from a stored procedure.LANDO wrote:Hi All,
I created a procedure that recieves an integer and returns an Integer.
I'm trying to call the procedure vie stored procedure job and write the output into an Oracle table.
It keeps failing with the message of :'Second output column must be a Procedure return message'
What am I doing wrong ?
I have defined the 'Stored Procedure' as transform and gave each parameter and assigned target column.
Any suggestions ?
Colin Larcombe
-------------------
Certified IBM Infosphere Datastage Developer
-------------------
Certified IBM Infosphere Datastage Developer
Re: Recieving a parameter from a stored procedure
Just to confirm are you actually using the stored procedure stage or have you written a job which gets data from a stored procedure.[/quote]
I'm Using a Stored procedure stage,
But if you have any suggestions on how to implement the stored procedure into a regular job and getting the necessary results that would help as well.
I'm Using a Stored procedure stage,
But if you have any suggestions on how to implement the stored procedure into a regular job and getting the necessary results that would help as well.
Best Regards,
Lando
Lando
Well to be accurate, I'm not sure what exactly you are reffering to.
I open anew server job and drug'n'drop the stored procedure ICON from the pallete --> I create a transformation --> and a target table.
I map the procedure results( I think ) to the proper target column.
Hope this helps to clarify what I'm trying to do.
I open anew server job and drug'n'drop the stored procedure ICON from the pallete --> I create a transformation --> and a target table.
I map the procedure results( I think ) to the proper target column.
Hope this helps to clarify what I'm trying to do.
Best Regards,
Lando
Lando
Lando,
If you must use a stored procedure for some reason, why can't you just do the insert within the stored procedure again using an OCI stage with a User-defined SQL.
From what you say, this looks very much like a lookup. You supply the key, it returns a value. If so, why not create an Oracle function which you can then call from an OCI stage using a simple "select fn(:1) from dual" and use the OCI stage as a lookup.I created a procedure that recieves an integer and returns an Integer.
I'm trying to call the procedure vie stored procedure job and write the output into an Oracle table.
If you must use a stored procedure for some reason, why can't you just do the insert within the stored procedure again using an OCI stage with a User-defined SQL.
Jim Paradies
Thanks,jzparad wrote: From what you say, this looks very much like a lookup. You supply the key, it returns a value. If so, why not create an Oracle function which you can then call from an OCI stage using a simple "select fn(:1) from dual" and use the OCI stage as a lookup.
I didn't think of that.
I altered the procedure to act like a function and it works. :D
Best Regards,
Lando
Lando