KB Article #66778

FTP retrieve simultaneously 'n' files from a folder

Problem

- Is it possible to instruct the FTP RETRIEVE to pick up simultaneosly more than 1 file ?


Resolution

* In order to be picked up 4 files simultaneously, the string on IF condition should be 'xxxx';
* Example:




CD $CORE_DATA"/ftp/public/inbound";
%Count="";
-LIST "." INTO %F {
-RECV %F;
IF(%FTPSTATUS IN "200"-"299") {
DELETE %F;
}
              %Count=%Count"x";
              IF (%Count="xxxx") {
                               QUIT;
               }
}