FTP Task
Posted: Tue Dec 16, 2014 1:46 am
My below FTP task is not recognising the file name generated with variable from database file. It says no such file or directory. Please advise
Code: Select all
<project name="SEND_MBR_EXTRACT" mainModule="Main" version="1.0" logLevel="verbose">
<description>Upload International PO Details to GW SFTP Server</description>
<module name="Main">
<sql label="Get Files" resourceId="Test DB" autoCommit="true" user="auissa" password="********" version="1.0">
<query label="Read DB" outputVariable="Fileset">
<statement>Select XFFLNM from MBTSTDTA.MBEXEFP</statement>
</query>
</sql>
<forEachLoop label="For Each File" itemsVariable="${Fileset}" currentItemVariable="Row">
<ftp label="Send File by FTP" resourceId="Media Merchant" version="1.0">
<put label="Put File" sourceFile="/MEM/${Row[1]}" destinationDir="/Renewal EDMs" />
</ftp>
</forEachLoop>
</module>
</project>