FTP with trailing spaces

JES2/3, JCL, utilities.
Post Reply
Anithab
Registered Member
Posts: 44
Joined: Mon May 26, 2014 2:57 pm

FTP with trailing spaces

Post 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
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: FTP with trailing spaces

Post 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".
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.
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: FTP with trailing spaces

Post 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.
zprogrammer
Post Reply

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

Register

Sign in

Return to “JCL - Job Control Language.”