× 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.



On Tue, Feb 17, 2015 at 5:39 PM, Sam_L <lennon_s_j@xxxxxxxxxxx> wrote:

2) Thinking about it, what good does trimming trailing spaces do on a save
to a source physical file? It couldn't save any disk space could it, since
the fields in a source PF are fixed length? But it presumably would save
space when saving to the IFS.

This is one of the things that I found confusing about the way some of
the folks were talking about this issue. When talking about source
PFs, yeah, trimming is meaningless.

But sometimes folks are talking about how RDi represents a source
member internally (in memory), or as a local "work file" (on disk, but
in the file system where RDi is running, not an IBM i physical file).
This was also eluded to in the passage you quoted:

Reply from Mike Hockings of IBM"
"Let me first say that I have not investigated but my *guess* is that
when you open for edit the process strips trailing blanks to make it
more natural to edit

One of the possibilities brought up is that when you open something in
RDi, it first checks to see whether it already has an up-to-date local
copy. If so, then it uses that, and when it does so, if the lines had
been trimmed in the local copy before, then the lines will still be
trimmed when you open it. However, if it finds that the local copy is
out of date, then it has to go back to the server to fetch the latest
version, and that version, because it's a member in a source PF, will
have trailing blanks.

At least that is the working theory. And several folks have said that
older versions of RDi did the trim automatically when opening (so even
if it had to get a copy from the server, it still did the trim right
away, at least for editing, as in Mike Hockings's guess). And
apparently now it no longer does that trim automatically.

I think a good test (sorry if someone already tried this and I missed
it), is to open a member in the latest RDi, trim it if it's not
already trimmed, and save. Then on some OTHER machine, open the same
member in the latest RDi (not SEU), and see if it's trimmed there.
(If it is, then I would try upping the ante as far as the save, doing
a content-changing RDi edit in addition to the trim, before opening in
the other RDi.)

John Y.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.