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



In case anybody wondered about how this issue was resolved...

I never was able to figure out what caused the actual issue, so I finally went back and started over. The change was a conversion from program-driven looping, through one of three different files, and it was taking about a full 60 seconds plus or minus 10 or 15 to get from the time they entered the menu option to get to the initial subfile view.  So I needed the performance of getting multi-row fetches.

I rewrote the changes "from scratch" again. This time I did not hit those blockers. It's still a mystery.

Sometimes I think about using SQL-CLI instead. I understand there's somewhat of a performance hit that way. In fact, I'm going to ask about that in a separate thread.

--Alan


On 7/26/2021 5:31 PM, Alan Cassidy wrote:
Good questions.

On 7/26/2021 4:46 PM, Hiebert, Chris wrote:
A likely scenario is you are now receiving an SQL Error because the fields you selected do not exactly match the definition you are attempting to fetch into.

----

I thought so too, but I checked the select list of fields and the fields in the DS fetched into, and they match exactly.

You have mentioned the SQLERR3 is zero, but what is SQLCODE or SQLSTATE.
Or in debug just "EVAL SQLCA" and get them all.

==> The SQLCODE is 100. However, when I run the SQL statement copied to an interactive SQL session, I get a great many records.

What I am doing right now is scratching what I have and I'm going to go step by step. I've compiled with one cursor and doing a single-row fetch. If it works I'll make it a multi-row fetch.

--Alan

Chris Hiebert
Senior Programmer/Analyst
Disclaimer: Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.


-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Alan
Cassidy
Sent: Monday, July 26, 2021 1:37 PM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: Re: An embedded SQL generated EVAL that does not evaluate???


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.