COBCH2381 DECLARE following an ENTRY within a SECTION that has a previous EXIT SECTION or GO TO statement

Compilation has encountered an illegal code construction where a DECLARE statement follows an ENTRY statement, within a section that already contains an EXIT SECTION or GO TO statement.

Refactor the code to avoid such a scenario.