DECLARE

Defines the behavior of locally declared variables.

Syntax:

 >>-.---.----DECLARE-"option"----------><  
    +-/-+ 

Parameters:

option
The permissible options are:
1
Locally declared variables (variables defined using the DECLARE statement) are added to local-storage, and are not allocated afresh each time a SECTION is entered.
Note: This setting is not supported for the following:
  • Programs containing parameterized sections.
  • Programs compiled to .NET COBOL.
2
Locally declared variables (variables defined using the DECLARE statement) are allocated afresh each time a SECTION is entered. This is the default behavior.

Properties:

Default: DECLARE"2"
Phase: Syntax check
$SET: Any