Calc Object Function _pbcount() - ancillary function to ddlRelaterEx() PRESENT BY WITH COUNT Format: _pbcount(0) Result: The result of this function is a 64-bit floating number that represents the count of instances of the current breakpoin. Notes: The instigating ddlRelateEx() must include the PRESENT BY WITH COUNT Clause; and it must include the PRESENT BY columns in a VALUE Clause. Example: For schema: TABLE1 String1 1) ABCDE1 2) ABCDE1 3) ABCDE2 4) ABCDE2 5) ABCDE2 6) ABCDE3 7) ABCDE3 8) ABCDE3 9) ABCDE3 10) ABCDE4 11) ABCDE5 12) ABCDE5 TABLE2 String1 1) ABCDE1 2) ABCDE2 3) ABCDE3 4) ABCDE4 5) ABCDE5 TQL Procedure: fill/x a Table1 fill/x a Table2 relatex a - PRESENT BY WITH COUNT Table2.string1 - VALUE Table2.string1 - / Table1 / INNER / Table2 / Table1.String1 = Table2.String1 createcalcobject/dx CO1 A NULL "return // - calc pbcount = _pbcount(0) // - print Table2.String1 pbcount (+5) // getcalc/px a NULL CO1 TQL Result: ABCDE1 2 ABCDE1 2 ABCDE2 3 ABCDE2 3 ABCDE2 3 ABCDE3 4 ABCDE3 4 ABCDE3 4 ABCDE3 4 ABCDE4 1 ABCDE5 2 ABCDE5 2