hi
in my d/b i have 3 levels and in each level 1 segment is there. parent is 1 and child in level1 is 1 and child in level 2 is 1. and for each segment there r 10 occurences. here parent has 10 seg occurences, next level child has 10 occurences and the last level has 10 occurences.
here what i want to do is retrieve all the records.
by specifying a GN call can we do this or any other way is there?
The logic for ur prgm goes like this
"1. Give a call to 1st parent(1st level) using GU call with status code ?ge?
Do while pcb-status code1 = ? ? ( successful call)
Give a call to 1st child (2nd level) using GU with qualified SSA using SSA of 1st parent
Do while pcb-status code2 = ? ?
Give a call to 1st child (3rd level) using GU with qualified SSA using SSA of 1st parent &child of (2nd level)
Do while pcb-status code3 = ? ?
Do some operations?.
Give a call to successive segments in 3rd level using GN until status code ?gb?
End;
Give a call to successive segments in 2nd level using GN until status code ?gb?
End;
Give a call to successive segments in 1st level using GN until status code ?gb?
End;
"