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




Buck,
I like your naming of the preference. Can I tweak it.
'Treat text beyond column 80 as SQL code to be auto-formatted?'

What sort of preferences would get the SQL to look the way you want?



Regards,

Edmund (E.H.) Reinhardt
Technical Architect for Rational Developer for i



Phone: 1-905-413-3125 | Home: 1-905-854-6195 IBM
E-mail: edmund.reinhardt@xxxxxxxxxx
RDi YouTube: 8200 Warden Ave
www.youtube.com/user/IBMRational#g/c/62DF24D5BCD43501 Markham, ON L6G 1C7
Find me on: LinkedIn: Canada
http://ca.linkedin.com/in/edmundreinhardt/






From: Buck Calabro <kc2hiz@xxxxxxxxx>
To: wdsci-l@xxxxxxxxxxxx,
Date: 18/06/2014 09:41 AM
Subject: Re: [WDSCI-L] Feedback regarding the automatic SQL Formatter
Sent by: "WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxx>



On 6/11/2014 2:09 PM, Taryn Morris wrote:

The development team is looking to improve some functionality with the
SQL
automatic formatter and we are seeking your feedback to give us some
guidance. Some of you may have experienced the frustration of pushing
embedded SQL code beyond column 80 while the automatic formatting
preference is turned on. Once the cursor is moved to another line, the
formatter will re-format the SQL statement but leave behind any code
pushed
beyond column 80, since anything after this is generally considered a
comment and should be ignored.

I have not found the combination of settings that will tell the
formatter to produce the sort of output that I like to look at. Turning
off the SQL (and RPG) auto-formatter is probably the first thing I do
when I install RDi.

We are proposing a solution to have another preference to turn on with
the
SQL formatter that will allow SQL that goes beyond column 80 to be
considered part of the statement and not a comment. This will prevent the
formatter from ignoring any code that may get pushed out during a
reformat
of the statement.

What we would like to know is how many of you use the space beyond column
80 to write the comments for SQL statements, versus including it directly
in the code (ie: using '//' or '/*' to comment).

I never use right hand comments; there isn't enough room to say anything
sensible. Well, as anyone who knows me will attest, *I* certainly can't
say anything briefly :-)

Also, would this solution
help those who use automatic SQL formatting? If this solution helps, we
would appreciate any recommendations on what the new preference should be
named in order to make its intention obvious to the user.

'Treat right hand text as SQL code to be auto-formatted?'
--buck
--
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 ...

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.