END DECLARE SECTION

Syntax

>>---EXEC SQL---END DECLARE SECTION---------END-EXEC----><

Purpose

The END DECLARE SECTION statement terminates a host variable declaration section begun by a BEGIN DECLARE SECTION statement.

Example:

 WORKING-STORAGE SECTION.

 EXEC SQL BEGIN DECLARE SECTION END-EXEC
 01 staff-id        pic x(4).
 01 last-name       pic x(30).
 EXEC SQL END DECLARE SECTION END-EXEC