PL/I · Message ID

CEE3363S: A Second Main Procedure/Function Was Entered Without Crossing a Nested Enclave Boundary

What does CEE3363S: A Second Main Procedure/Function Was Entered Without Crossing a Nested Enclave Boundary mean in PL/I?

The application tried to invoke a second MAIN PL/I procedure inside the same enclave — for instance, calling a load module compiled with the MAIN option a second time via a plain static CALL rather than through a proper nested-enclave mechanism.

CEE3363S: A Second Main Procedure/Function Was Entered Without Crossing a Nested Enclave BoundaryIBM Enterprise PL/I for z/OS · z/OS Language Environment

Condition

The application tried to invoke a second MAIN PL/I procedure inside the same enclave — for instance, calling a load module compiled with the MAIN option a second time via a plain static CALL rather than through a proper nested-enclave mechanism.

Fix

Change the called module to a non-MAIN procedure if it's meant to be a callable subroutine, or invoke it through a mechanism such as LINK/ATTACH that establishes a genuinely new enclave instead of a plain CALL.

Related message id