IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  Using Call Syntax for a stored procedure

    Posted 08/26/05 05:09 AM

    Originally posted by: SystemAdmin


    I created a testing stored procedure with one input/output parameter that just returns the row count from a table.

    CREATE PROCEDURE s_SQLTest
    @Return int OUTPUT
    AS
    SELECT @RETURN = count(*) from subenroll

    When i execute this procedure from a Sink Ouput card as follows

    DBQUERY("CALL s_SQLTest(?/'0')", "...")

    I get a error in my trace file stating the following.

    <2788-2100>: Query : CALL s_SQLTest(?/'0')
    <2788-2100>: The procedure statement to be executed is:
    <2788-2100>: {call s_SQLTest()}
    <2788-2100>: OLE DB Error code: 0x80040e10
    <2788-2100>: Procedure 's_SQLTest' expects parameter '@Return', which was not supplied.

    I have tried changing the syntax to each of the following and i still get the same error.

    DBQUERY("CALL s_SQLTest(?/0)", "...")
    DBLOOKUP("CALL s_SQLTest(?/'0')", "...")
    DBLOOKUP("CALL s_SQLTest(?/0)", "...")

    Can someone help me with this syntax. I've looked at the documentation and i don't see anything wrong with it. I'm running this from a output sink card.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: Using Call Syntax for a stored procedure

    Posted 08/29/05 04:50 AM

    Originally posted by: SystemAdmin


    What happens when you run the procedure from the command line? What version of DB are you using? What version of DS TX?
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 3.  Re: Using Call Syntax for a stored procedure

    Posted 08/30/05 11:38 AM

    Originally posted by: SystemAdmin


    Not sure what you mean by running the procedure from the command line...Are you talking about running it in Query Analyzer?

    We are using SQL Server 2000.
    We are using Datastage TX 7.5 w/patches
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 4.  Re: Using Call Syntax for a stored procedure

    Posted 08/31/05 06:53 AM

    Originally posted by: SystemAdmin


    Yes, from the Query analyzer.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 5.  Re: Using Call Syntax for a stored procedure

    Posted 09/01/05 04:37 PM

    Originally posted by: SystemAdmin


    The correct syntax is: DBQUERY("CALL s_SQLTest(?)", "...") for an OUT only variable in SQLServer with the adapter.

    However, even with the wrong syntax, the trace file should not look as it does. This is an open case and are trying to identify if any patches are giving problems.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender