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