Theo Kouwenhoven
asked on
FTP Will strip all trailing blanks, Why?
Hi,
I have a PF where in some cases the last 2 fields (2x12 characters) are filled with blanks. During FTP from AS/400 to an ASCII machine, all the records are truncated after the last non blank character. So I'm missing the last two fields. This give some problems for the program that has to process the retrieved data.
How can I prevent this truncation without changing the contents of the resultfile??
Is there any EBCDIC character that will replaced during translation to ASCII by a blank, without stripping the trailing blanks??
I have a PF where in some cases the last 2 fields (2x12 characters) are filled with blanks. During FTP from AS/400 to an ASCII machine, all the records are truncated after the last non blank character. So I'm missing the last two fields. This give some problems for the program that has to process the retrieved data.
How can I prevent this truncation without changing the contents of the resultfile??
Is there any EBCDIC character that will replaced during translation to ASCII by a blank, without stripping the trailing blanks??
ASKER
Samic400,
Using BIN, command is not the solution, it wil stop to convert EBCDIC to ASCII.
The QUOTE option is not supported (I think), when I send the file from the AS400 to the PC the following message appears in the FTP-log file:
"202 Command not implemented, superfluous at this site."
Using BIN, command is not the solution, it wil stop to convert EBCDIC to ASCII.
The QUOTE option is not supported (I think), when I send the file from the AS400 to the PC the following message appears in the FTP-log file:
"202 Command not implemented, superfluous at this site."
I'm sorry. I should have read your original question better - 400 to pc not assuming pc to 400.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanx a lot,P_S_Price !!!
It worx
It worx
ASKER
Hey P_S_Price,
Can you tell me why this option is not listed in the FTP helpfunction.
Are there more fo this "Secret" options, where can I find them.
Regards
Murphey
Can you tell me why this option is not listed in the FTP helpfunction.
Are there more fo this "Secret" options, where can I find them.
Regards
Murphey
Ask IBM!!!
Or try this.
FTP
then sign on
then type - QUOTE SITE TRIM 0 - this should stop the trimming.
Hope this helps!