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.