Example: Embed SQL statements in PL/I applications that use SQL

An UPDATE statement coded in a PL/I program might be coded as follows.

EXEC SQL  UPDATE DEPARTMENT
            SET MGRNO = :MGR_NUM
            WHERE DEPTNO = :INT_DEPT ;