Hello,
I've developed a stored procedure in COBOL, and have tested it with the IBM stored procedure builder. It works fine.
Now I want to call the stored procedure from a REXX-script. Whenever I try to call it I'm getting an SQLCODE -084 (UNACCEPTABLE SQL STATEMENT).
The example from DB2 Programmer Guide doesn't fit to my STP, because my STP does not have a result set. It has only input- & output-parameters.
Here is the defintion of my STP:
How can I call this STP from REXX?
Thank's
Adam
I've developed a stored procedure in COBOL, and have tested it with the IBM stored procedure builder. It works fine.
Now I want to call the stored procedure from a REXX-script. Whenever I try to call it I'm getting an SQLCODE -084 (UNACCEPTABLE SQL STATEMENT).
The example from DB2 Programmer Guide doesn't fit to my STP, because my STP does not have a result set. It has only input- & output-parameters.
Here is the defintion of my STP:
Code:
CREATE PROCEDURE MYSCHEMA.MYSTP
( IN DATEINAM VARCHAR(1024)
,IN ABTIMEST TIMESTAMP
,OUT VORHANDE CHARACTER(4)
,OUT ISTTIMES TIMESTAMP
,OUT USERID CHARACTER(8)
,OUT UEGRUN VARCHAR(156)
)
RESULT SET 0
LANGUAGE COBOL
PARAMETER STYLE DB2SQL
NOT DETERMINISTIC
NULL CALL
FENCED
MODIFIES SQL DATA
NO DBINFO
COLLID MYCOLLID
WLM ENVIRONMENT DB0TWLM
ASUTIME LIMIT 244500
STAY RESIDENT NO
PROGRAM TYPE MAIN
SECURITY DB2
COMMIT ON RETURN NO
INHERIT SPECIAL REGISTERS
How can I call this STP from REXX?
Thank's
Adam