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



I confirm your suspicion. Items "type" and "text" of the DS "item_t" do
not highlight other references.


Thanks, Matt


-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Thomas
Raddatz
Sent: Wednesday, December 17, 2014 5:04 AM
To: 'wdsci-l@xxxxxxxxxxxx'
Subject: [WDSCI-L] Mark Occurrences does not work for indices of complex
qualified array items


Hi,

Can somebody confirm, that "Mark Occurences" does not work for the
example below? Or am I the only one who is affected by the problem?

H main(main)

D main pr extpgm('RDI.001')

P main b
D pi

D item_t ds qualified template
D type 1a
D text 50a

D i s 10i 0

D ok ds qualified inz
D items 10a dim(30)

D error ds qualified inz
D items likeds(item_t) dim(30)

D result s 10a
D resultItem ds likeds(item_t) inz
/free

// Try to mark the occurrences of 'i'.
i = 1;

// Mark Occurences does not work, when the
// array item is further qualified by a sub field.
result = error.items(i).type;

// That works
resultItem = error.items(i);

// And that works also
result = ok.items(i);

*inlr = *on;

/end-free
P e

Regards,

Thomas.


--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the
intended recipient only. Access, disclosure, copying, distribution, or
reliance on any of it by anyone else is prohibited and may be a criminal
offence. Please delete if obtained in error and email confirmation to
the sender.
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list To post a message
email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/wdsci-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.