I have a requirement to copy some text from header data to each record in the body of the group. for example, I have an input dataset as follows (FB, LRECL=6). '01' indicates beginning of a group in the 1st column. the next 01 indicates end of a group.
I require an output as follows.
SEQ number to be appended to the end of the record(single digit) and tkt1 or tkt2 or tkt3 in header to be repeated in all of the detail records of the corresponding group.