When creating external calls in EXTOL EDI Integrator we have the ability to create/manage user defined messages. These messages can be customized/maintained in <EXTOL code LIB>/EXUSRMSG.
When an external call is executed from a map, the messages will appear in the outbound application data log or the incoming application data log
Let’s see how we use the EXUSRMSG messages in an RPG program.
In the example above, if @TSTL1 = 1 then we will MOVE ‘USR0031’ into EXTOL’s parm list parameter: P0RTN. Subsequently, EXTOL will force an error if P0RTN is != NULL.
Going back to the example, if @TSTL1 != 1 then P0RTN is null and there is no error.
USR0031 is defined in the *MSGF below:
Copyright 2012 @ www.seanhoppe.com
By: Sean Hoppe on