Meaning – The term ‘invoke’, refers to the process of activating a command or a function within a program. In a program, there a number of functions or commands that are generally meant to either automate a repetitive process or even optimize the program during execution. When the time comes to activate such commands or functions, the coder must invoke the same by using the expected syntax.

In a Java client, you can create object instances of classes that were implemented in COBOL and invoke methods on those objects using standard Java syntax. In a COBOL client, you can invoke methods that are defined in Java or COBOL classes by coding the INVOKE statement.

Example of usage“If an invoked method is not supported in the class to which the object reference refers, a severity-3 Language Environment condition is raised at the run time unless you code the ON EXCEPTION phrase in the INVOKE statement.”