A separate copy of the Local-Storage Section is created each time the run-time system element is activated and exists only
during the lifetime of that activation. The Local-Storage Section is provided specifically for use in functions, methods and
The Local-Storage Section is composed of the section header, followed by data description entries for noncontiguous data items
and/or record description entries. Each Local-Storage Section record-name and noncontiguous item-name should be unique since
it cannot be qualified. Subordinate data-names need not be unique if they can be made unique by qualification. The syntax
of data description entries is defined in the topic
File Description Entry Skeleton.
Provided no reference is made to a given data-name or record-name, it need not be unique by qualification.
- The EXTERNAL clause is not allowed.
- The GLOBAL clause is not allowed.
- The syntax CALL ... USING local-data-item is permitted.
- The syntax ENTRY ... USING local-data-item is not permitted.
- The syntax PROCEDURE DIVISION ... USING local-data-item is not permitted.
- The presence of a Local-Storage Section in a program implicitly sets the recursive attribute, even if the section does not
have any records. For more information, see the section
Common, Initial, and Recursive Attributes in the chapter
- The DEFAULTBYTE compiler directive does not apply to items declared within the Local-Storage Section.
- The VALUE clause initializes data items as described in the topic
The VALUE clause.