SeanHoppe.com > CLEO Tips > Cleo EDI Integrator > Wielding EXTOL's EXUSRMSG file to create custom messages in EXTOL Integrator

Wielding EXTOL's EXUSRMSG file to create custom messages in EXTOL Integrator

27th May 2012

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.

Example of Implementing EXUSRMSG

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:

screenhot of EXTOL file: EXUSRMSG



Copyright 2012 @ www.seanhoppe.com


By: on
load('http://www.seanhoppe.com/EXTOL-Blog-Feed2/'); $feed2 = array(); foreach ($rss2->getElementsByTagName('item') as $node2) { $item2 = array ( 'title' => $node2->getElementsByTagName('title')->item(0)->nodeValue, 'desc' => $node2->getElementsByTagName('description')->item(0)->nodeValue, 'link' => $node2->getElementsByTagName('link')->item(0)->nodeValue, 'date' => $node2->getElementsByTagName('pubDate')->item(0)->nodeValue, ); array_push($feed2, $item2); } $limit2 = 5; $rss3 = new DOMDocument(); $rss3->load('http://www.ebithree.com/EBIThree-RSS/'); $feed3 = array(); foreach ($rss3->getElementsByTagName('item') as $node3) { $item3 = array ( 'title' => $node3->getElementsByTagName('title')->item(0)->nodeValue, 'link' => $node3->getElementsByTagName('link')->item(0)->nodeValue, ); array_push($feed3, $item3); } $limit3 = 5; $rss4 = new DOMDocument(); //$rss4->load('http://www.ebithree.com/EBIThree-RSS/'); $rss4->load('http://www.ebiworld.com/EBI-Feed/'); $feed4 = array(); foreach ($rss4->getElementsByTagName('item') as $node4) { $item4 = array ( 'title' => $node4->getElementsByTagName('title')->item(0)->nodeValue, 'link' => $node4->getElementsByTagName('link')->item(0)->nodeValue, ); array_push($feed4, $item4); } $limit4 = 5; echo ' '; ?>