BBritain
VIP Member
Forum,
Does anyone know if ‘Set User Selection’ functions need to be processed before or after ‘Set User Sequence’ functions?
I have a UBE which is using both Set User Selection AND Set User Sequence commands quite extensively. The UBE has a default sequence of Item1, Item2, Item3 AND has Level Break Headers (LBFs) and Level Break Footers (LBFs) for all three fields. I currently use Processing Options to change the data sequence as well as control the display of the LBFs and LBHs (via Suppress Writes).
Under certain conditions I need to sequence by Item2, Item1, Item3. Unfortunately, my level breaks for Item2 trigger everytime Item1 hits a level break. I understand the logic for Item2 level breaks to trigger everytime Item1 breaks – when the default sequence is in effect. Is there anyway to get around this?
Item1 Item2 Item3 (default sort order)
A 11 A01
A 12 J23
B 08 M35
B 11 A01
B 15 Q35
C 12 J23
Item2 Item1 Item3 (alternate sort order)
08 B M35
11 A A01
11 B A01
12 A J23
12 C J23
15 B Q35
It would be nice if Item2 level breaks didn’t trigger on every record. Can anyone help?
Ben again,
E9, AS400, DB2/400
Does anyone know if ‘Set User Selection’ functions need to be processed before or after ‘Set User Sequence’ functions?
I have a UBE which is using both Set User Selection AND Set User Sequence commands quite extensively. The UBE has a default sequence of Item1, Item2, Item3 AND has Level Break Headers (LBFs) and Level Break Footers (LBFs) for all three fields. I currently use Processing Options to change the data sequence as well as control the display of the LBFs and LBHs (via Suppress Writes).
Under certain conditions I need to sequence by Item2, Item1, Item3. Unfortunately, my level breaks for Item2 trigger everytime Item1 hits a level break. I understand the logic for Item2 level breaks to trigger everytime Item1 breaks – when the default sequence is in effect. Is there anyway to get around this?
Item1 Item2 Item3 (default sort order)
A 11 A01
A 12 J23
B 08 M35
B 11 A01
B 15 Q35
C 12 J23
Item2 Item1 Item3 (alternate sort order)
08 B M35
11 A A01
11 B A01
12 A J23
12 C J23
15 B Q35
It would be nice if Item2 level breaks didn’t trigger on every record. Can anyone help?
Ben again,
E9, AS400, DB2/400