× 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 Chuck...I'm not specifying FOR READ ONLY, so I'll make that change
and give it a try.


On Mon, Nov 4, 2013 at 11:06 AM, CRPence <CRPbottle@xxxxxxxxx> wrote:

FWiW: V7R1 had an APAR with symptom msgSQL5011 [for which although
they actually managed to include a symptom keyword instead of just a
message identifier or just /words/ to help someone locate the issue,
there is almost no supporting text about the origin and correction,]
stating only that FOR UPDATE might be related to the issue. Thus one
might infer, that if the FOR READ ONLY [aka FOR FETCH ONLY] clause is
specified, then perhaps the issue could be resolved; that is of course,
if that matches the intention for the cursor. However that specific
defect was supposed to have been corrected since c1116710, so unless
very old maintenance or an uncorrected nuance, that is unlikely to be
the /same/ issue, so its presumed circumvention is unlikely to assist...
but there is no harm in trying just to get a compile.

Regards, Chuck

On 30-Oct 10:19 , Scott Mildenberger wrote:

<<SNIP>>
What release are you on?

It seems like I have seen this error when compiling sometimes but
can't remember the issue. Is the ds array defined globally or in a
procedure?

Michael Ryan on Wednesday, October 30, 2013 11:03 AM wrote:

Still can't get that external data structure to work. Now I'm
trying this:

D WkMblSesP E DS Dim(1000)
D Qualified
D ExtName(MBLSESP)

Exec SQL
Declare C1 Cursor For
Select * From MblSesp
Where Session_End is null;

Exec SQL
Fetch C1 For 1000 Rows
Into :WkMblSesP;
SQL5011: Position 20 Host structure array WKMBLSESP not defined or
not usable.

I'm thinking that Fetch and external data structures don't work
together.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-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.