I have a simple problem . My dataset has 3 column Child , Parent, Flag I need to search the child into the parent column and check the flag if flag is N ( New node) or Z we need to again check the child of that parent and continue till we don't get the parent of the child and flag='Y'. child parent flag 1 . I 2 1 Z 3 1 Z 4 2 N 5 4 Z 6 4 Z 7 4 Z 8 3 N 9 8 Z 10 8 Z 11 10 N 12 11 Z 13 11 Z 14 13 N 15 14 Z 16 14 Z 17 12 N 18 17 Z 19 17 Z 20 18 N 21 20 Z 22 20 Z 23 19 N 24 23 Z 25 23 Z 36 5 Y 37 6 Y 38 7 Y 39 9 Y 40 21 Y 41 22 Y 42 24 Y 43 25 Y 44 15 Y 45 16 Y My macro variable list should be generated as : Tree_List = 1, 2, 4, 5, 36, 6, 37, 7, 38, 3, 8, 9, 39, 10, 11, 12, 17, 18, 20, 21, 40, 22, 41, 19, 23, 24, 42, 25, 43, 13, 14, 15, 44, 16, 45 Am not able to get the idea how to start coding . Any help would be great help for me. Thanks.
... View more