Could it be that your server is UNIX and the file from Windows? I'd check the last character in debug - if it is x13 (CR), the file was likely FTPed in binary mode, not ASCII mode. Check the addition 'smart line feed' in 'open dataset'. It ignores CR.
I know, not a direct answer to your question, but it may save you some hassle... ![]()
Wolfgang