DB2 Stored Procedures
Understand why DB2 stored procedures exist, how they're written and called from COBOL, and what tradeoffs they introduce versus embedded SQL.
A DB2 stored procedure packages business logic (often written in COBOL itself, though other languages are supported) so it runs directly within the database engine's address space, callable from any client via a simple CALL statement instead of requiring that client to embed and maintain the underlying SQL and logic itself. This matters for interviews because it represents a genuine architectural choice — centralizing logic in the database tier versus keeping it in application programs — with real tradeoffs interviewers expect you to articulate.
A stored procedure is a shared specialist office embedded inside the courthouse itself (the database) that any department can call on for a specific well-defined service, rather than every department keeping its own in-house copy of the same specialist's knowledge and risking each copy drifting out of sync over time.