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



Thanks for that workaround, Joe. I can live with that in code I write
going forward.
I'm still hoping that Rational will address this, given that the real
need for that function is for interpreting the code written in the past,
and usually in a Browse mode. Many shops, including mine, discourage
re-writing "working" lines of code in old programs, so I don't often get
the opportunity to "fix" the SQL so the nesting tool will work properly.
Since this was observed over a year ago, is it too much to expect a fix
(at least in RDP) soon, especially now that I have to ask my management
for the funds for the tool? Is Rational listening here?
--Michael

-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx]
On Behalf Of Joe Pluta
Sent: Wednesday, April 14, 2010 11:31 PM
To: Rational Developer for IBM i / Websphere Development Studio Client
forSystem i & iSeries
Subject: Re: [WDSCI-L] WDSc LPEX structure-nesting bug - has this been
fixed?

I've never seen this one, but that's because I don't usually separate
the exec sql from the first SQL statement. If you combine lines 3 and 4

below to "exec sql select col1" then c-m and c-s-o both work fine.
Unfortunately, the code you show below still confuses the parser. I
guess the "select" being the first word on the line is the issue.

Joe
Buck mentioned this "issue" on this list in March 2009, but I found no
follow-up. If an SQLRPGLE source member has an imbedded SQL select
within an "if" structure, attempts to identify the structure nesting
yield unsatisfactory results.

My workstation has WDSc at V 7.0.0.8 (7.0.0.20090225_1508) with
Interim
Fix V 001 (7.0.0.8_20090312_1000)

Our i is running v5r4, but will be on 6.1 in a couple weeks.

Specifically, if in my silly source member shown below, with my cursor
on the outer "endif" on line 13, I press Ctrl+M, I expect to see lines
2-13 selected. The block gets confused by the sql "Select" (no, there
will be no "endsl" so don't look for one) and shows only lines 4-13 in
the structure. Likewise, if I put the cursor on the if on line 2,
Ctrl+M won't play at all.

The other block nesting aide (shift-Ctrl-O) misbehaves the same way.

1 /free
2 if this = that;
3 exec sql
4 select col1
5 into :hostFld1
6 from TableX
7 where col2 = :that;
8 if %subst(SQLSTATE : 1 : 2) = '00';
9 this = hostFld1;
10 else;
11 that = hostFld1;
12 endif;
13 endif;
14 /end-free

Has this been fixed in a newer build of WDSc? Or perhaps I need a
PTF?
Or do I need to convince the "higher powers" to spend the big bucks
for
RDP to get this functionality to perform adequately?

I'd really like this to be reliable, as I maintain some butt-ugly
programs with some pretty wild nesting. Is there any hope?

Hey, while I'm dreaming, does RDP also mark the ELSE lines somehow?

Many thanks.
- Michael Koester


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.