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



Dan

Others have mentioned using Cttl-Shift-O - I tried it, and it worked if my cursor was on a DO or ENDDO - I don't know when this was added to CL code, but it's nice. It doesn't work quite so nicely, IMO, as the RPG way does, but it is there, at least at 9.5 and forward.

Glad the LL trick worked - it doesn't always completely, but that might be fixed better in 9.6, according to Barbara.

As for continuing in SEU style, I don't know - maybe the fix in 9.6 for formatting after a comment takes care of that. Or maybe it's because ENDPGM is like the end of the topmost layer.

Cheers
Vern

On 12/6/2017 11:58 AM, Dan wrote:
Vern, if the preference you are talking about is found via Remote Systems /
Remote Systems LPEX Editor / IBM i Parsers / CL, then, yes, Automatic
indent was already checked. I tried the LL block trick and that worked.
It's not my ideal solution, because I was hoping for a nested view using
the lines on the left of the source code, but this is good to know.

Another issue I think I've found. In the same dialog, I have Automatic
formatting checked, and:
. Label position: 1
. Command position: 4
. Continued line indent: 16

The Label position works (I tried several settings), but the other two do
not. Using the above settings, the first line of a command (with no label
and not within any do group) starts at column 15 and continuation lines
start at 30. This is when I'm editing an existing source member that was
created/edited using SEU's formatting.

Curious, I created a new CLLE member in RDi, and all the statements I add
follow the preferences mentioned above. Finding this, I went back to the
other CLLE member I was editing, went to the bottom of the source, and
entered lines after the ENDPGM statement. The editor continued to format
per the "SEU style", so I guess these preferences don't matter unless
you're editing a brand new member.

- Dan

On Tue, Dec 5, 2017 at 9:55 PM, Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx>
wrote:

Hi Dan

Have you tried the indenting of blocks for CL? It's in a preference. If
you need to get the whole member to be indented with it, you can try
putting LL on the first line and LL and the last line - the indent takes
place in changed lines, and this changes the whole thing.

There can be places where the indent isn't what is expected - I have to
make some local adjustments, then get back to doing sections as needed.

You could do this on a copy of the member, if you want to maintain the
original layout. Just be sure to turn the indenting off if you need to.

HTH
Vern



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.