Greetings!
I have a file in the following format - rec size 94,bytes.first byte is record type. Record type 6 is the main record and record type 7 is the continuation record. All the other record types need to be copied to the output file as it is, but if there is a record type 7 immediately after record type 6, that entire record 7 must be concatenated to position 95 onwards to the previous record. Not all rev type 6 may be followed by rec type 7 as they may not have continuation record. Final output will not contain 7 on the column 1 as they are appended to the previous record. I can write a cobol program, but I was thinking it should be possible using sort. Any suggestion is appreciated! Thanks - Srini
1xxxxxxxxxxxxxxyuuiou
2 utuyuyu uiyuiyui
3ytuyiuiuiuiui
4yuyiyuyuyuyiiuiu
5asdfghjk
6Abcdefpghijkl
7Par stubs
6xxxxxxxxxxx
6qqqqqqqqqq
6tttttttttt
7$$$$$$$$$