The EXIT PROGRAM statement must not appear within a GLOBAL declarative procedure.
30
Cause . . . . . : The EXIT PROGRAM statement can not appear in GLOBAL declarative %1.
Recovery . . . : Remove the EXIT PROGRAM statement.