SeanHoppe.com > CLEO Tips > Cleo EDI Integrator > Import Data using CRTCNNIMP

Import Data using CRTCNNIMP

7th October 2015

Updated: 06/20/2016

In 4 simple steps we will import IFS data into EXTOL EDI Integrator. This process is very handy when the data is not received via VAN; ie. Email.

In our example below, we will FTP data to the iSeries and place it into the IFS directory. Once the data is in the IFS directory we will use CMD: CPYFRMSTMF and CMD: CRTCNNIMP to place the data into the EXTOL Mailroom, as a Mailroom Connection.


STEP 1:

FTP Data to iSeries’ IFS Directory

STEP 2:

CRTPF FILE(QTEMP/TEMP) RCDLEN(1024)

STEP 3:

CPYFRMSTMF tombr(’/qsys.lib/qtemp.lib/temp.file/temp.mbr’) fromstmf(’/extol/raw.txt’) MBROPT(*REPLACE) ENDLINFMT(*FIXED) TABEXPN(*NO)

Note: you will have to modify the fromstmf parm

STEP 4:

CRTCNNIMP FILE(QTEMP/TEMP) FORMAT(*UNWRAP) NETID(LOWES850).

CRTCNNIMP Notes:

FORMAT(*UNWRAP) – Many times the data we import into EXTOL will be unwrapped (1 record per segment). If this is the case we want to specify *UNWRAP.

NETID(LOWES850) - optional -  This is a cool trick to allow users to quickly identify data in the mailroom. Let’s say the data is for Lowes850, we would use NETID(LOWES850). When we go into the EXTOL Connections screen we would see LOWES850 under the Network Column.


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