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


METHOD-ID paragraph for defining a class instance method

Use the METHOD-ID paragraph to name an instance method. Immediately precede the METHOD-ID paragraph with an IDENTIFICATION DIVISION declaration to indicate the beginning of the method definition.

For example, the definition of the credit method in the Account class begins like this:

Identification Division.
Method-id. “credit”.

Code the method-name as an alphanumeric or national literal. The method-name is processed in a case-sensitive manner and must conform to the rules of formation for a Java method-name.

Other Java or COBOL methods or programs (that is, clients) use the method-name to invoke a method.

related tasks
Invoking methods (INVOKE)
Using national data (Unicode) in COBOL

related references
Meaning of method names (The Java Language Specification)
Identifiers (The Java Language Specification)
METHOD-ID 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)