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



Ds02 is defined as an array of 100 elements. (Is the intent to have an array of ds01's?)

The eval is moving Ds01 into the 1st element of Ds02 (which is why it didn't give you an error there).
Apparently the compiler doesn't want to assume the first element on the IF condition as well (which I'd be glad about).

I would ask why ds02 is defined as Dim(100) when you're not using indexes on it, but maybe this is a stripped down example?

-Kurt Anderson

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Wim_Vandepoel@xxxxxxx
Sent: Wednesday, January 04, 2012 7:45 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Qualified ds index - RNF5343

HN all

I'm getting a compile error for the code below.
Why is the -eval- statement ok, but the -if- statement not?
Could someone point me in the right direction?
Thanks!


d ds01 ds qualified
d dim(100)
d fld01 5a
d fld02 5a
d ds02 ds likeds(ds01)
d dim(100)
/free

ds01(1).fld01 = 'abcde' ;
ds01(1).fld02 = 'fghij' ;
ds01(2).fld01 = '12345' ;
ds01(2).fld02 = '67890' ;

// ok
ds02 = ds01 ;

// not ok
if (ds01 = ds02) ;
RNF5343: Array has too many omitted indexes; specification is ignored.
Endif ;

*inlr = *on;
/end-free


We are at V5R4

Rest Begards
Wim

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.