error when using 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
balajimadhav
Participant
Posts: 15
Joined: Thu Jul 06, 2006 8:59 am

error when using stored procedure

Post by balajimadhav »

Hi ,
i am getting the error below when calling a stored procedure in which parameters are passed through a transformer.

<<job_name>>.<stored procedure name>: Must have an output link to declare this type of parameter(B or O).

thanks in advance.
Balaji.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Need more info,
HOw are you calling the stored procedure, STP stage of odbc stage?
What type of parameter are you specifying while importing the stored procedure?
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 »

It is not possible to call a stored procedure from a Transformer stage (other than through a custom Routine, and even there it is not a good idea). So you don't understand completely what your job design is actually doing.

A passive stage (for example ODBC or Stored Procedure stage) exposes the methods for calling the stored procedure, and the Transformer stage executable invokes those methods.

An ODBC stage, or the per-row section of a Stored Procedure stage, can only invoke a stored procedure that deals with a record set. So, if the stage is "reading" data, then the SP must supply data. If the stage is "writing" data, then the SP must consume data. And the number of arguments (parameters) in the SP must match the number and type of columns in the job design.
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