Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


REPOSITORY paragraph for defining a subclass

Use the REPOSITORY paragraph to declare to the compiler that the specified words are class-names when you use them within a subclass definition, and to optionally relate the class-names to the corresponding external class-names (the class-names as they are known outside the compilation unit).

For example, in the CheckingAccount subclass definition, these REPOSITORY paragraph entries indicate that the external class-names of the classes referred to as CheckingAccount, Check, and Account within the subclass definition are CheckingAccount, Check, and Account, respectively.

Environment Division.                          Required
Configuration Section.                         Required
Repository.                                    Required
    Class CheckingAccount is “CheckingAccount” Optional
    Class Check           is “Check”           Required
    Class Account         is “Account”.        Required

In the REPOSITORY paragraph, you must code an entry for each class-name that you explicitly reference in the subclass definition. For example:

The rules for coding REPOSITORY paragraph entries in a subclass are identical to those for coding REPOSITORY paragraph entries in a class.

related tasks
REPOSITORY paragraph for defining a class

related references
REPOSITORY paragraph (COBOL for Windows Language Reference)


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)