Posted: Fri May 02, 2014 12:00 pm Post subject: Invoking Stored Procedure using ESQL
Newbie
Joined: 25 Mar 2014 Posts: 5
I am attempting in invoke a SQL stored procedure that has a required input string. I am not getting any results back or any database connection errors. I have tested and confirmed that the stored proc does return a record when executed in SQL Explorer. I have used similar code to invoke stored procedures that have integer parameters without issue in a different subflow of the same application. I’m not sure why this is not returning any results. Any suggestions?
Code:
DECLARE luCheckOrder SHARED ROW;
CREATE PROCEDURE GetByOrderNumber ( IN P1 CHARACTER )
LANGUAGE DATABASE
DYNAMIC RESULT SETS 1
EXTERNAL NAME "dbo.usp_GetOrder";
CREATE PROCEDURE GetOrderDetails (IN orderNum CHARACTER, OUT acctNum CHARACTER, OUT routingNum CHARACTER)
BEGIN
DECLARE checkOrder REFERENCE TO luCheckOrder.top;
IF NOT LASTMOVE(checkOrder) THEN
CREATE LASTCHILD OF luCheckOrder NAME 'top';
MOVE checkOrder TO luCheckOrder.top;
END IF;
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum