7.27.2 DEF_MAP_EX and Calling a Program

When a DEF_MTH_EX does not specify an ENTRYPOINT, it means that the external method being called is a program.

When a DEF_MAP_EX is used with such an associated DEF_MTH_EX these rules apply:

  • It cannot specify FOR(*RESULT), as a program cannot have a return value.

  • The parameter is always passed by reference, so the FOR value only controls what is mapped from RDML before calling the external method, in the case of *INPUT and *BOTH, and back to RDML variables after calling the external method, in the case of *OUTPUT and *BOTH.

Example

Define an argument that is a date to be passed in DDMMYY format with a separator of "," to a program:

Def_Map_Ex Name(InvoiceDate) For(*BOTH) Type(*DATE) Format(*DMY) Date_Separator(*COMMA)
  • No labels