Using the LIKE Clause

Use the LIKE clause to avoid recreating the SPL whenever the tables in the RETURNING clause changes.

If you want to change any of the columns in the SPL routine, you can use LIKE syntax with the RETURN clause. Here is an example of named parameters with LIKE syntax:
CREATE PROCEDURE p (inval INT DEFAULT 0)
RETURNING serial_num LIKE testtab.serial_num, 
   name LIKE testtab.name, 
   points LIKE testtab.points;
RETURN (inval + 1002), “Newton", 100; 
END PROCEDURE;