SeanHoppe.com > CLEO Tips > Cleo EDI Integrator > Monitor for multiple FTP messages with SCANTXTSRC

Monitor for multiple FTP messages with SCANTXTSRC

14th May 2016

When an FTP transmission is initiated we need to run the CMD: SCANTXTSRC. If we need to monitor for multiple messages we can create a message file (CRTMSGF) to hold the possible messages you can receive during communications.

Once created use the WRKMSGF command, 12=Work with message descriptions to enter messages for example:

Opt  Message ID  Severity  Message Text                    
    NET0001       0           No files to receive          
    NET0002       0           All files received successfully  

FTP SCRIPT
Then point the SCANTXTSRC command in your control script to that message file.

For example:


       80 CMDEXC      SCANTXTSRC SCANSTRING(*MSGID) FILE(QTEMP/EXTOLNET) MBR(O@CL) MSGQ(C@CL) MSGF(*LIBL/EXTOLNET) MSGID(NET0001 NET0002) IGNO              
       90  CMDEXC     RECASE(*YES) ERRCON(*ABSENT)
 

The communications will only fail as determined by the ERRCON(*ABSENT) if neither of these two messages is found in the output of the FTP server.


For more Extol Examples:


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 ' '; ?>