Step-by-step guide for creating SQL and external stored procedures and functions on DB2 for z/OS, with production-ready patterns.