Archives of the TeradataForum
Message Posted: Thu, 04 Aug 2011 @ 08:58:08 GMT
Subj: | | Stored procedure error 7968: Result set does not support |
|
From: | | Adithya K Bayyana |
Hi,
The below code is Teradata stored procedure.
REPLACE PROCEDURE TEST.GET_PER_YER()
DYNAMIC RESULT SETS 1
BEGIN
DECLARE C_Result CURSOR WITH
RETURN ONLY FOR
SELECT FCL_PER_OF_YR_ID,FCL_YR_ID
FROM VPROD.DT_INF
WHERE DAY_DT= '20110622' ;
OPEN C_Result ;
END;
---- end of stored procedure
---calling the stored procedures .
CALL TEST.GET_PER_YER() ;
After executing the above statement , I am getting the below error .
7968: GET_PER_YER :The recipient of the result set does not support
dynamic result sets.
Thanks,
Adithya
|