CLASS-ID paragraph

The CLASS-ID paragraph specifies the name by which the class is known and assigns selected attributes to that class. The CLASS-ID paragraph is required and must be the first paragraph in a class IDENTIFICATION DIVISION.

The following format is for a class IDENTIFICATION DIVISION.

Format: class identification division

Read syntax diagramSkip visual syntax diagram IDENTIFICATION DIVISION.ID DIVISION. CLASS-ID.class-name-1 INHERITSclass-name-2.AUTHOR.comment-entryINSTALLATION.comment-entryDATE-WRITTEN.comment-entryDATE-COMPILED.comment-entrySECURITY.comment-entry
class-name-1
A user-defined word that identifies the class. class-name-1 can optionally have an entry in the REPOSITORY paragraph of the configuration section of the class definition.
INHERITS
A clause that defines class-name-1 to be a subclass (or derived class) of class-name-2 (the parent class). class-name-1 cannot directly or indirectly inherit from class-name-1.
class-name-2
The name of a class inherited by class-name-1. You must specify class-name-2 in the REPOSITORY paragraph of the configuration section of the class definition.