7.28.2 DEF_MTH_EX Examples

Example 1: Define an external method that calls a program named INVOICE in library PRODLIB

DEF_MTH_EX Name(CallPgmInvoice) Module(INVOICE PRODLIB)

For an example of how to pass values to an external method that calls a program, see 7.27.2 DEF_MAP_EX and Calling a Program.

Example 2: Define an external method that calls a procedure GetInvoice in service program named INVOICE in the library list

DEF_MTH_EX Name(CallGetInvoice) Module(INVOICE) EntryPoint(GetInvoice)

For examples of how to pass values to an external method that calls a procedure in a service program, see 7.27.3 DEF_MAP_EX and Calling a Procedure in a Service Program.