1. Records will be in a clubbed format i.e. First detail(DTL) type records, then Primary(PRM), and then Supplementary(SUP) type records. So, records in BOLD constitute one complete (clubbed) set of records for a single member, and the normal font are for the second member.
2. Since, The DTL type records have CONTRACT# and PBP# so corresponding Primary and Supplementary records will have spaces for these two fields.
Now, the requirement is to cascade the CONTRACT# and PBP# for a member, from its DTL type records, to its corresponding Primary and supplemental records. That is, the outcome should be as below:
For the record defining the GROUP, the information being PUSHed can be PUSHed over itself when it is to be located in that position in all records. No need for BUILD here.