Originally posted by: MakSys
Thank you very much for the suggestions. I am able to get the files using the built in FTP client from a command prompt and the files come down fine. I have seen cases where characters are introduced during the FTP process if going from windows to unix machines, but have found that using the ASCII switch takes care of these issues. I am using the ascii switch both in my manual FTP commands and in the WTX FTP configuration.
I'm pretty sure that the files are fine when they are transferred from the FTP server to the local working directory. I have the local archive turned on and when I look at those files they are fine. I've also tested pulling down the files with the built in windows command FTP client and they come down okay. I turned on the VERBOSE tracing and I the FTP commands are what I would expect (ASCII mode on, directory listing, get each file, delete each file).
So, I think the FTP adapter is doing fine when it transfers the files, but somehow when the data from each file is passed to my map I'm getting these extra <NULL> characters. I will check the input type trees as you suggest. In theory, the type tree should be the same. I'm changing the source from file (the local drive) to FTP Server, but the incoming files are the same format.
I did manage to work around it by using a TRIMRIGHT(myfiledata,HEXTEXTTOSTREAM("00")) to remove the null characters at the end :).
#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender#DataExchange