SQL : How to create a DB2 stored procedure in SQL with following conditions?

Published --