I have a input text file on Windows with only the below line
Code: Select all
A.B
Code: Select all
x'41'x'0a'x'42'
Code: Select all
C:\Users\wells>ftp MFSERV
Connected to MFSERV.company.com.
220-FTPD1 IBM FTP CS V1R13 at MFSERV.company.us, 16:56:53 on 2017-08-16.
220 Connection will close if idle for more than 5 minutes.
User (MFSERV.company.com:(none)): WELLS
331 Send password please.
Password:
230 WELLS is logged on. Working directory is "WELLS.".
ftp> ascii
200 Representation type is Ascii NonPrint
ftp> put C:\ftp\sample.file 'WELLS.file.ftp'
200 Port request OK.
125 Storing data set WELLS.FILE.FTP
250 Transfer completed successfully.
ftp: 3 bytes sent in 0.00Seconds 3000.00Kbytes/sec.
ftp>
Code: Select all
Command ===> Scroll ===> CSR
****** ***************************** Top of Data ******************************
000001 A B
C2C444444444444444444444444444444444444444444444444444444444444444444444
152000000000000000000000000000000000000000000000000000000000000000000000
Code: Select all
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\wells>psftp MFSERV
login as: wells
wells@MFSERV's password:
Remote working directory is //WELLS
psftp> ls /+mode=text,linerule=crlf
Listing directory /+mode=text,linerule=crlf
linerule=crlf
mode=text
psftp> put C:\ftp\sample.file //WELLS.FILE.SFTP
local:C:\ftp\sample.file => remote://WELLS.FILE.SFTP
psftp>
Code: Select all
Command ===> Scroll ===> CSR
****** ***************************** Top of Data ******************************
000001 A B
C1C444444444444444444444444444444444444444444444444444444444444444444444
152000000000000000000000000000000000000000000000000000000000000000000000
FTP converts it correctly, I am not aware of the SFTP options to do it.
This is sort of related to http://community.dovetail.com/forum/vie ... f=8&t=1689
Once we have the solution for this thread, I guess I would be able to apply the technique for the other thread
Thanks in advance,
Vasanth.S