× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: *BLANKS = spaces?
  • From: Cyndi Bradberry <CyndiB@xxxxxxxx>
  • Date: Fri, 15 Sep 2000 11:10:35 -0600

If you want to keep the trailing blanks when FTP'ing from an AS/400 do the
following steps:

Initiate FTP on your AS/400
After UserId and Password type the following command: Locsite Trim 0

Then send your file as usual. This tells the 400 not to strip the trailing
blanks. 

I learned this to facillitate FTP of ACH files from JDE to our bank. They
required the fixed record length, but I didn't want to go thru the process
of putting in a special character, and then taking it back out. If you are
initiating teh FTP from the PC, I couldn't find any way of making it keep
the blanks. 

HTH,

Cyndi B.
Boise, ID

-----Original Message-----
From: Jim Langston [mailto:jlangston@conexfreight.com]
Sent: Friday, September 15, 2000 10:17 AM
To: RPG400-L@midrange.com
Subject: Re: *BLANKS = spaces?


Yeah, the AS/400 does that when transfering files to a PC I've noticed, it
dropps
the trailing blanks.

This can be a bit annoying, especially if you want to import the file
transfered into a
data base file on the PC using fixed width format.

One possible solution for you is to just make it 802 characters and put
something in
the 802nd byte, such as an '.' or 'x' or something.  Not elegant, I agree.
In my case
we were just able to modify the routines that expected the data to not
expect each line
to be the same length.

Now, this is using an FTP transfer using ASCII mode.  I am not sure what
happens using
other file transfers, or BINARY mode.  Although Binary mode would pretty
much be worthless
to you, unless you knew and wanted to convert from EPSDIC (sp?) to ASCII.

Regards,

Jim Langston

Sean Porterfield wrote:

> If I MOVE *BLANKS to a field, is that the sames as *ALL ' ' or having
> spaces?  I've noticed that the AS/400 generally doesn't seem to
> distinguish between a blank and a space in most instances.
>
> This goes back to my 801 character field - when I FTP it to a PC, the
> record is only as long as the real data and does not include the
> trailing blanks.  I need the PC file to also be 801 characters.
>
> I tried sending the database file first, then converted to a PC Document
> and transferred it.  Same result both times.  This may have just gone
> off topic for this list...
>
> Thanks!

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.