Hi,
i have the same problem but can solve it. The stored procedure returns an error code but is not captured by Bteq, here is an example log:
Call SP_NAME('DB_NAME','TABLE_NAME');
*** Error 2825 NO RECORD OF THE LAST REQUEST WAS FOUND AFTER DBC RESTART
*** Total elapsed time was 32 minutes and 45 seconds.
+---------+---------+---------+---------+---------+---------+---------+----
.IF ERRORCODE <> 0 THEN .GOTO BTEQ_KO ;
The Bteq ERRORCODE is always 0, the Bteq doesn't see the all Stored Procedure errorcode and BTEQ go to a OK state.
There's some other sql instruction for capture the SP error code in a Bteq?
Regards.
Giulian
Hi,
i have the same problem but can solve it. The stored procedure returns an error code but is not captured by Bteq, here is an example log:
Call SP_NAME('DB_NAME','TABLE_NAME');
*** Error 2825 NO RECORD OF THE LAST REQUEST WAS FOUND AFTER DBC RESTART
*** Total elapsed time was 32 minutes and 45 seconds.
+---------+---------+---------+---------+---------+---------+---------+----
.IF ERRORCODE <> 0 THEN .GOTO BTEQ_KO ;
The Bteq ERRORCODE is always 0, the Bteq doesn't see the all Stored Procedure errorcode and BTEQ go to a OK state.
There's some other sql instruction for capture the SP error code in a Bteq?
Regards.
Giulian