Guild Companies, Inc.  
 
Midrange Guru - Tech Tips
OS/400 Edition
Volume 2, Number 19 - March 13, 2002

Keep Trailing Blanks on FTP Transfer from PC Client

Hey, David:

When I transfer a file via FTP from an AS/400, oops, iSeries, to a PC, trailing blanks are lopped off the end of each record. If I want to keep trailing blanks, I use LOCSITE, which is a command of the OS/400 client:

locsite trim 0

However, I want to do the transfer from a PC client. How do I preserve trailing blanks in that case?

--Tim

The client-side equivalent of locsite is site. Use quote to pass the command to the server:

quote site trim 0

In addition to setting the trim option, I frequently use the site command to specify the iSeries' specific name format or coded character set ID (CCSID). To find out more about site, locsite, quote, and other FTP subcommands, start an FTP session from a command entry screen using the following:

ftp yoursystemname

After typing in your profile and password, type help and press Enter. Next, move your cursor to the appropriate subcommand and press Enter for a full description of the subcommand.

-- David

Sponsored By
MRC (MICHAELS, ROSS & COLE)

Want to get your company to the Web in five days?
Now you can with the mrc-Productivity Series!

We'll design/develop a pilot intranet, extranet, or Internet web site, based on your specifications, so you can explore the possibilities of the Internet using your current iSeries without any of the risks associated with deploying an untested solution.

Click here to find out more!

Spring Giveaway: Enter to win a Sony Clie PDA!

mrc was founded in 1981 and provides software tools and consulting services to over 4000 IBM iSeries and WebSphere customers globally. The company produces the mrc-Productivity Series, the only iSeries development tool suite to provide Web development, rapid application development, and real-time reporting capabilities that can easily be deployed to any platform.

For more information, contact mrc at 450 E. 22nd Street, Suite 203, Lombard, IL 60148; via phone at 630.916.0662; via fax at 630.916.0663; via e-mail at mrc@mrc- productivity.com; or via the Internet at http://www.mrc-productivity.com.

THIS ISSUE
SPONSORED BY:
WorksRight Software, Inc.
mrc
BACK ISSUES
TABLE OF CONTENTS
Native Graphics, VNC, and Perl
Keep Trailing Blanks on FTP Transfer from PC Client
Reader Feedback and Insights: Passive Mode and OS/400 FTP?
  Newsletters | Subscribe | Advertise | About Us | Contact | Search | Home  
  Last Updated: 3/13/02
Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.