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



AFAIK, Wim, you cannot compare two arrays.

http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Frzasd%2Fsc092508765.htm

•An array name cannot be specified in a compare operation, but an array element may be specified.

Joe

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


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.