L740: FUNCTION name THAT MODIFIES SQL DATA IS NOT VALID IN CURRENT CONTEXT

See the section Error SQLCODES in your IBM Database Messages and Codes manual, message -740, for information.