FTP Clean-up

EXTOL EDI Integrator -- FTP Clean-ups



Extol Integrator supplies a command (FTPCLNUP)that can be inserted into an FTP receive script to delete files that were received. This deletion occurs after a successful receive, on the FTP server.

This set-up is time-tested and has been working for me since 2006. If you have any questions about implementing the EXTOL Command: FTPCLNUP, Contact Me.



Seq# Function Script text
50 CMDEXC      ADDMBR MBR([email protected]) PFILE(@NL/QTXTSRC) MBROPT(*REPLACE) TEXT('@CS/@NP JOB:@JN/@JU/@JB')

60 CMDEXC      ADDMBR MBR([email protected]) PFILE(@NL/QTXTSRC) MBROPT(*REPLACE) TEXT('@CS/@NP JOB:@JN/@JU/@JB')

Seq# Function Script text
310 CMDEXC      OVRDBF FILE(QTXTSRC) TOFILE(@NL/QTXTSRC) MBR([email protected])

320 SETUP         OPEN

370 WRTLINE     UserName PassWord

380 WRTLINE     cd upload

390 SETUP        CLOSE


400 CMDEXC      DLTOVR FILE(QTXTSRC)


450 CMDEXC      SBMJOB CMD(FTPCLNUP LOGFILE(@NL/QTXTSRC) LOGMBR([email protected]) CLNUPFILE(@NL/QTXTSRC) CLNUPMBR([email protected]) CLNUPLOGF(@NL/QTXTSRC) CLNUPLOGM([email protected]) FRMSGF(@NL/FTPMSGF) FRMSGID(FTP0001) TCMSGF(@NL/FTPMSGF) TCMSGID(FTP0002) RMTSYS(ftp.customersite.com) RNMDEL(D) RUNSCN(Y) PATTERN(*MSGID) MSGQ([email protected]) MSGF(@NL/FTPMSGF) MSGID(USR9003)) JOB(FTPCLNUP) JOBD(EXTSYS/EXTRNJOBD)
451 CMDEXC      CPYSRCF FROMFILE(@NL/QTXTSRC) TOFILE(*PRINT) FROMMBR([email protected])

452 CMDEXC      CPYSRCF FROMFILE(@NL/QTXTSRC) TOFILE(*PRINT) FROMMBR([email protected])

455 CMDEXC      SBMJOB CMD(RMVM FILE(@NL/QTXTSRC) MBR([email protected])) JOBQ(EXTOL)

456 CMDEXC      SBMJOB CMD(RMVM FILE(@NL/@NC) MBR([email protected])) JOBQ(EXTOL)

457 CMDEXC      RMVM FILE(@NL/@NC) MBR([email protected])

458 CMDEXC      SBMJOB CMD(RMVM FILE(@NL/QTXTSRC) MBR([email protected])) JOBQ(EXTOL)

459 CMDEXC      SBMJOB CMD(RMVM FILE(@NL/QTXTSRC) MBR([email protected])) JOBQ(EXTOL)

460 CMDEXC      SBMJOB CMD(RMVM FILE(@NL/@NC) MBR([email protected])) JOBQ(EXTOL)

500 EXIT

Below is a screenshot of the FTPMSGF file. This file is mandatory in our example. We use the entries to scan for predetermined messages.



EXTOL FTP message file






By: on
EXTOL Business Partner Logo

More EXTOL Examples

We have over 300+ examples of how EXTOL can be customized to meet your organization's needs

Each of our exmaples are free to review and use.


Warning: include(../Footer2.php): failed to open stream: No such file or directory in /home/seanho8/public_html/EXTOL-EEI-6.3-Examples/FTP/EXTOL-EDI-FTP-Cleanup-Script.php on line 209

Warning: include(../Footer2.php): failed to open stream: No such file or directory in /home/seanho8/public_html/EXTOL-EEI-6.3-Examples/FTP/EXTOL-EDI-FTP-Cleanup-Script.php on line 209

Warning: include(): Failed opening '../Footer2.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/seanho8/public_html/EXTOL-EEI-6.3-Examples/FTP/EXTOL-EDI-FTP-Cleanup-Script.php on line 209