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
FTP with trailing spaces
- Anuj Dhawan
- Founder
- Posts: 2824
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: FTP with trailing spaces
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".
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".
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: FTP with trailing spaces
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.
zprogrammer
- Anuj Dhawan
- Founder
- Posts: 2824
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: FTP with trailing spaces
Hi Pandora-Box,
Description about "TRAILINGBLANKS (FTP client and server) statement" does not say so:
Description about "TRAILINGBLANKS (FTP client and server) statement" does not say so:
OP can also try this:
Code: Select all
QUOTE SITE TRAILINGBLANKS SBSENDEOL
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute