I am trying to run PLSql procedure in Software AG Designer application, while running it as a service, it doesn't ask for input. The Stored procedure is as follows:
CREATE OR REPLACE PROCEDURE getProductDetails(productName VARCHAR, productResult SYS_REFCURSOR) AS
BEGIN
OPEN productResult FOR
SELECT product_count from product WHERE product_name = productName;
END;
And the I call the procedure as follows:
SET SERVEROUTPUT ON
VAR rs REFCURSOR;
BEGIN
getProductDetails('pendrive', :rs);
END;
print rs;
Am I doing anything wrong with the Stored Procdure?
Please Help. Thanks.