L491: FUNCTION function-name MUST HAVE RETURNS, AND EITHER EXTERNAL OR SOURCE

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