Provides a character string value returned by the most recently executed RETURN statement of a local or remote procedure, trigger block, user-defined function, method of a class, class constructor, or property accessor.
For examples of the RETURN-VALUE function, see the
RETURN statement reference entry.
If it is a RETURN with options that can set the RETURN-VALUE, but does not, the empty string ("") is returned.
RETURN-VALUE does not return the value of a non-VOID method of a class or user-defined function invocation. You return the values of these methods and functions within an expression where you reference their invocations, similar to referencing a variable value.