Page 1 of 1

FTP with trailing spaces

Posted: Tue Dec 15, 2015 12:48 pm
by Anithab
Hi,

I have a file of length 200 and having last 50 bytes filled with space and I wanted to retain the space when I FTP it.

Is there a command to achieve this?

I tried TRAIL in LOCSITE and it did not yield me the expected result as the file was truncated.

How to resolve this, any suggestion will help

Re: FTP with trailing spaces

Posted: Tue Dec 15, 2015 2:42 pm
by Anuj Dhawan
I might be mistaken in the reply as I am replying from memory and readings:

If you are talking about IBM zSeries mainframe - check for TRAILINGBLANKS option of FTP from your support. It can be tuned to keep or discard the trailing blanks from records.

If you are talking about iSeries the System iĀ® system trims trailing blanks by default. To turn this off when the iSeriesĀ® is the client, issue the LOCSITE TRIM 0 command. It should return a "LOCSITE TRIM option set to 0".

Re: FTP with trailing spaces

Posted: Tue Dec 15, 2015 3:03 pm
by zprogrammer
Anuj If I remember correctly TRAIL is shortform for TRAILINGBLANKS in Mainframe and TS had done that I guess
TRAILingblanks Specifies that the FTP server preserves the trailing blanks in a fixed format data set when the data is sent to a foreign host.

Re: FTP with trailing spaces

Posted: Tue Dec 15, 2015 3:35 pm
by Anuj Dhawan