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

Normally, if less than 4,095 bytes, I cut & paste from RDI 9.5.0.2 into notepad++ to scan and search...

In this case, the XML had "Sections" with definite areas. So, it was NOT a "RANDOM" search, basically, it had a "Header" , "Detail", and a "Total" sections. (Layman's explanation)

I had to scroll down to the "Total" section to find the bad Data....

By the way, I went ahead and redefined the XML variable in the "Vendor Code" as follow for Debug Purposes:
dcl-ds VarXML Qualified;
Data char(720000);
Debug char(1000) Overlay(Data) Dim(720);
end-ds;

So, sadly, I modified Vendor Code, so I can view the data in my beloved RDI, so I do NOT have to go to yucky Green Screen Debug... <sigh> When I add "VarXML" to debug, it pulls in the Array called "DEBUG" in the monitor. Which with RDI I can Cut & Paste into NotePad++ to search...

Since I knew what I was looking for Green-Screen Debug, I was able to scroll through several page and find the data in Error in under a minute. Just wish RDI Debug could do the same thing that Green Screen Debug can do... <frown>

PS. The Fossil Green-Screen-SEU types, so we do NOT have to do that, because the Green Screen Debugger already works! <frown> And they are RIGHT! :(

-Ken Killian-


-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Buck Calabro
Sent: Thursday, January 7, 2016 5:45 PM
To: wdsci-l@xxxxxxxxxxxx
Subject: Re: [WDSCI-L] RDI 9.5.0.2 cannot display Large variable like Green Screen... <shock>

On 1/7/2016 2:37 PM, John Yeung wrote:
On Thu, Jan 7, 2016 at 2:01 PM, Buck Calabro <kc2hiz@xxxxxxxxx> wrote:
On 1/7/2016 1:26 PM, Ken Killian wrote:
Yup, I had to "SCAN" those 72000 characters... <frown>

And I should have said "Close to the end", not the "very end"...
<grin>

Ouch. Thanks for sharing that, I appreciate your time. Eyeballing
72000 characters - I don't think that's a skill I could ever master.
I...my eyes just can't go through that much stuff without my
attention wandering.

Well, 72000 characters amounts to 900 lines at 80 characters per line.
Which isn't insurmountable. You know there are folks who will manually
scroll through source code longer than that.

My last post on this, I promise :-)

Imagine this scenario: I've managed to suss out that my code is falling over on .org addresses, but the first one doesn't occur in the data for many thousands of rows.

I can't set a conditional breakpoint that will stop when it finds .org anywhere inside my email address - there's no %scan builtin (green or GUI).

I'm absolutely not going to be setting a breakpoint at the top of the code and whacking F8 until my eyeball finally sees a candidate email address.

With the current debugger, I'm going to write some code that will do the %scan and then set a breakpoint inside that 'dummy' if...endif structure. Or, I'm going to break when the index is zero, or, or, or.
Anything other than manually eyeball it and hope I catch it as it goes by.

But the issue under discussion is having to scan horizontally. If there was a variable full of XML data I just know I'd get lost eyeballing it.
One workaround would be to use Windows copy to grab all 72k, paste it into an editor (like the Eclipse XML editor!) and use search facilities to look at it. Maybe to alter the data and paste it back into the program variable to test my hypothesis. But I can't do that because I can't /see/ all 72k bytes.

And if I had more than one row, I almost certainly would use the same technique I've always used: insert some debugging stub code into the program and have the code do the scanning that I wish the debugger could do. I've been known to condition debugging code like that with a data area so that I could turn it off and on at will.

I was sort of hoping that Ken had a different take on what to do with those 72k bytes; something that I in my rut hadn't thought of.

--
--buck

Visit wiki.midrange.com and register for an account. Edit a page that helps you, and because it's public, you'll help someone else, too!

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