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



I'm probably oversimplifying, but I would think that RDi could simply trim the trailing spaces when it reads in the source or when it outputs it to the screen.

Kurt Anderson
Sr. Programmer/Analyst – Application Development, Service Delivery Platform

-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Paul Bailey
Sent: Tuesday, February 17, 2015 4:42 AM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries
Subject: Re: [WDSCI-L] Source Opens with trailing spaces not trimmed


We also have that problem, and we don't use the IFS to store the source. It seems to be caused when cut&paste is used to put code in... although I am not 100% sure of that. I suspect that when you re-open the file you are opening a cached version and it retains the spaces at the end of lines (again, I am not 100% sure).


If I see a source member with that issue I just use the following command on the LPEX command-line (press ESC when the source member is open):
findText all noEmphasis regularExpression replaceWith "$1" "(\\S)\\s+$"

Copy that line (as is, including quotes) to the LPEX command-line, press ENTER, and it will remove all spaces at the end of all lines (right trim, aka %TRIMR to RPGLE devs).


Alternatively, use the CTRL-F panel, entering " +$" (without quotes) into the find box, clearing the replace box (nothing must be in it), tick regular expressions and wrap, untick the other boxes, and it does the same TRIMR when you press the REPLACE ALL button.


There might be a need for an RFE, but I am not sure I would bother voting for it as it doesn't bother me. Or some enterprising plugin maker might find a way to help.


Paul.


-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Austin, Mark
Sent: 17 February 2015 08:20
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries
Subject: Re: [WDSCI-L] Source Opens with trailing spaces not trimmed

Hi Charles,

I have the same problem but we store all our source on the iSeries.

Best regards,
Mark

-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Charles Wilt
Sent: 16 February 2015 22:38
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries
Subject: Re: [WDSCI-L] Source Opens with trailing spaces not trimmed

Are you storing on the IFS?

That's the only place I could understand trailing spaces remaining after saving...

Charles

On Mon, Feb 16, 2015 at 4:53 PM, Kurt Anderson <Kurt.Anderson@xxxxxxxxxxxx>
wrote:

Does anyone know if there's an RFE for opening an RPG source (or really
any source) with trailing spaces trimmed? I just hit the "one time too
many" of copying over trailing spaces into source and when I hit the "end"
key to go to the end of the code, it took me way beyond column 80.
Yes, I can do the trim thing. I just don't want to have to do that on
every source I open. Plus it marks the source as modified.

If there isn't an RFE, I'll open one. This has bugged me for a very
long time.

Thanks,

Kurt Anderson
Sr. Programmer/Analyst - Application Development, Service Delivery
Platform [cid:image002.jpg@01CD16F9.25D27630]
web: www.customcall.com<http://www.customcall.com/> | email:
kanderson@xxxxxxxxxxxx<mailto:kanderson@xxxxxxxxxxxx>

A Division of Enghouse Systems Ltd.<http://www.enghouse.com/>
(TSX:ESL)

--
This is the Rational Developer for IBM i / Websphere Development
Studio Client for System i & iSeries (WDSCI-L) mailing list To post a
message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/wdsci-l.

--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l.

________________________________

“**Confidentiality**
The information contained in this e-mail is confidential, may be privileged and is intended solely for the use of the named addressee. Access to this e-mail by any other person is not authorised. If you are not the intended recipient, you should not disclose, copy, distribute, take any action or rely on it and you should please notify the sender by reply. Any opinions expressed are not necessarily those of the company.

We may monitor all incoming and outgoing emails in line with current legislation. We have taken steps to ensure that this email and attachments are free from any virus, but it remains your responsibility to ensure that viruses do not adversely affect you.
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l.
---------------------------------------------------------------------------------------
This email has been scanned for email related threats and delivered safely by Mimecast.
For more information please visit http://www.mimecast.com
---------------------------------------------------------------------------------------
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.