Nested Blocks

Top  Previous  Next

Nested Blocks

 

Like in Progress, blocks could be nested within other blocks.

DECLARE

.

BEGIN

  DECLARE

  .

  BEGIN

 

  END;

EXCEPTION

.

END;

Nested blocks could declare their own elements, including variables, constants, exceptions and cursors. Once we have nested blocks we have issues with the scope of those elements.