The RETURN statement returns from a routine. For SQL functions, it returns the result of the function. For an SQL procedure, it optionally returns an integer status value. For SQL table functions, it returns a table as the result of the function.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.