How the Standard Protocol for Method Calling Works

Previous Next

When you call a method using the INVOKE clause, the standard way in which this is processed (i.e., the standard protocol used) is as follows:

1.Fetch a record from the SELECT.
2.Create the external component.
3.Execute the method and catch any Out parameters. Return the record to the calling application.
4.Destroy the component.
5.Fetch the next record from the SELECT, etc.

NOTE: The component is destroyed and re-created for each record in the SELECT. If the INVOKE clause is used without a WITH clause, then of course only step 2, 3 and 4 apply.