WORKING-STORAGE Section
The Working-Storage Section describes records and subordinate data items which are not part of data files.
The Working-Storage Section is composed of the section header, followed by record description entries and/or data description entries for noncontiguous data items.
General format
Syntax rules
1. The PUBLIC, PRIVATE and PROTECTED phrases may be used only in the OBJECT Paragraph.
2. When one of the optional phrases PUBLIC, PRIVATE or PROTECTED is specified, the subsequent data item must have level numbers 01 or 77.
General rules
1. When the PUBLIC phrase is specified, the subsequent data items and all their subordinate items can be used by any program using the object in which they are defined.
2. When the PRIVATE phrase is specified, the subsequent data items and all their subordinate items can be used only by the class containing the object in which they are defined.
3. When the PROTECTED phrase is specified, the subsequent data items and all their subordinate items can be used by the class containing the object in which they are defined and by those classes that inherit from it.
4. If neither PUBLIC nor PRIVATE nor PROTECTED are specified, data items are PRIVATE.