Hi Cal,
You run DB2 for z/OS, not DB2 for iSeries.
This is a group for DB2 for LUW, not for DB2 for z/OS.
I don't have DB2 for z/OS at hand, but you may try the following instead:
SELECT KEYVALUE_TLPCNTRL INTO KEYVALUE
FROM FINAL TABLE
(
UPDATE TLPCNTRL
SET KEYVALUE_TLPCNTRL = KEYVALUE_TLPCNTRL + 1
WHERE KEYCODE_TLPCNTRL = KEYCODE
)
Both statement work in DB2 for LUW, but there are some additional restrictions on "select from data-change statements" functionality in DB2 for z/OS probably...
Regards,
Mark.