Ask the Expert

Preventing truncating trailing spaces

Is there a clean way to prevent a file FTP'd from an AS/400 system from truncating trailing spaces? I know the quote site trim 0 works from DOS, but I want to FTP directly from the AS/400 to the receiving system. The sent file always truncates the trailing spaces. Any ideas?


From the AS/400, in FTP use the command:
LOCSITE TRIM 0
This will set the trim off on the AS/400 FTP.
To turn it back on, use:
LOCSITE TRIM 1
To see what the current setting of TRIM is, use:
LOCSITE TRIM


This was first published in March 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: