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



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.