This was just published this morning. It seems to address your issue.
TechTip: DB2's CONNECT BY Simplifies Recursive Processing
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Musselman, Paul
Sent: Friday, April 13, 2012 9:24 AM
To: Midrange Systems Technical Discussion
Subject: RE: Finding reporting officer
If I followed this closely enough, and understand what you have, every employee is in a file, and has a 'pointer' to his or her boss. And now you need to point the UberBosses to a board member.
Could you just add the board members to the file, and point the UberBosses to them? And flag the 'my boss' field for the board members as *TOP or something like that?
You could then twist the 'BoardMembers' file around, and make it a logical over the employee file selecting only those entries with *TOP...
Or have I missed something important?
Paul E Musselman
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l