Line Splitup
Posted: Thu Jul 15, 2004 3:18 am
Hi,
I have a requirement like in the below scenario
I need to split source data in to multiples of 100 records and place a header record for them as given below
H...A...B..C....D..............................................1 (sequence number)
L1.........................E1.....F1.....G1......X............2
L2.........................E2.....F2.....G2......Y............3
.
.
L100.....................E100......F100.....G100.....X.........101
Where H is the header record and L1,L2...L100 are Line items and A,B,C,D,E,F,G are fields.
Now, I need to provide a separate summary line for all X records and a separate summary line for all Y records as given below.
H...A...B..C....D..............................................1 (sequence number)
L1.........................E1.....F1.....G1......X............2
.
L100.....................E100......F100.....G100.....X.........101
S1-------------------------------------------------------------- (summary line 1)
L2.........................E2.....F2.....G2......Y............3
.
.
S2--------------------------------------------------------------(summary line 2)
Note: Sequence number should be the max of the group line items (for X / Y records)
I have a requirement like in the below scenario
I need to split source data in to multiples of 100 records and place a header record for them as given below
H...A...B..C....D..............................................1 (sequence number)
L1.........................E1.....F1.....G1......X............2
L2.........................E2.....F2.....G2......Y............3
.
.
L100.....................E100......F100.....G100.....X.........101
Where H is the header record and L1,L2...L100 are Line items and A,B,C,D,E,F,G are fields.
Now, I need to provide a separate summary line for all X records and a separate summary line for all Y records as given below.
H...A...B..C....D..............................................1 (sequence number)
L1.........................E1.....F1.....G1......X............2
.
L100.....................E100......F100.....G100.....X.........101
S1-------------------------------------------------------------- (summary line 1)
L2.........................E2.....F2.....G2......Y............3
.
.
S2--------------------------------------------------------------(summary line 2)
Note: Sequence number should be the max of the group line items (for X / Y records)