Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, 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.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)