These are the option that is available in AS400 while transferring a
file to LINUX
I think this is what you are asking: These are the defaults .
Connected to HLPOM550. Port 21 logged on.
Local port is 23355.
SENDPASV is on.
SENDPORT is on. (PORT subcommand is sent with PUT(MPUT) subcommands.)
SENDSITE is off. (SITE subcommand is not sent with the PUT(MPUT)
subcommand.
Data type is ASCII.
Transfer mode is S.
Using structure F to transfer files.
LOCSITE TRIM option set to 1.
SUNIQUE (store unique) is off.
Server NAMEFMT has not been set by the FTP client.
Client NAMEFMT is 0.
CRTCCSID option set to *CALC.
NULLFLDS option set to 0.
VERBOSE mode on.
DEBUG is off.
-----Original Message-----
From: Pinkhasov, Zina
Sent: Monday, May 12, 2008 11:10 AM
To: 'Alexander V. Lukyanov'
Subject: RE: ftp in as400
Can you be more specific when you say CR is followed by NL?
What is this mean?
How do I check that CR is on or off in FTP?
How do you specify in FTP to remove a carriage control?
Thanks
Zina
-----Original Message-----
From: Alexander V. Lukyanov [mailto:[EMAIL PROTECTED]
Sent: Monday, May 12, 2008 1:01 AM
To: Pinkhasov, Zina
Cc: [email protected]
Subject: Re: ftp in as400
On Thu, May 08, 2008 at 12:16:53PM -0400, Pinkhasov, Zina wrote:
> The result of this file is 101 bytes, which is causing a problem down
> the stream....especially in SORT step.
>
> If you look at the file in HEX, it shows an extra byte 0D at the end
> carriage control.
I think the ftp server incorrectly adds extra CR at the end of file.
Usually CR is followed by NL, but if it is not then lftp does not remove
the CR.
BTW, does binary transfer mode work for you better? You can get the
binary file and then convert it locally if needed.
--
Alexander.