Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP Connector, do not concatenate

Status
Not open for further replies.

Freeflyers

IS-IT--Management
Apr 16, 2002
4
CH
Hi All,

I buil a map based on a query using all FTP adaptater parameters.
This map call a MAP_Dialog_Get set as Fille tree type and record type.
This map retrieve all the files located in the FTP server directory.
The problem is that all files are retrieved and concatenated in one file.

I will want all file to be retrieve in a directory not concatenated.
Any idea ?

MAP_DAILY_CLIENT
/*Start the FTP connection to get all files*/
=Run("FTP_Dialog_Get",
" -ID1 '-DBTYPE ODBC -SOURCE DERAM_TLKS "+"' "
+" -IAFTP1 '"+FTP_Connection_Str Column:Row:QRY_Client_FTP
+FTP_User_Name Column:Row:QRY_Client_FTP
+":"
+FTP_Pwd Column:Row:QRY_Client_FTP
+"@"
+FTP_Server Column:Row:QRY_Client_FTP
+"/"+FTP_File_Extension Column:Row:QRY_Client_FTP
+" -AUDIT Audit.log"
+" -TRACE V.log"
+"'"
/*Set the output directory and file name*/
+" -OF1 '"+FTP_Output_Dir Column:Row:QRY_Client_FTP+"Test_FTP "+DATETOTEXT(CURRENTDATETIME())+".txt'")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top