Top
PowerCOBOL V11.0 User's Guide
FUJITSU Software

10.1.2 Invoking Methods

Methods are accessed by using the COBOL INVOKE statement. The INVOKE verb is somewhat similar to a COBOL CALL statement, and was implemented as part of the object-oriented extensions to the COBOL language.

The general format of a method invocation is:

		INVOKE Control-name "Method-name" 
		  [USING [Parameter-1]...  ]
		  [RETURNING [Return-Value]... ]

Note that method names must be contained in double quotes and each name is case sensitive, meaning it must be spelled exactly as documented in upper and lower case letters.