Basically both are more and less same....I thought if we can generate similar key in both the files like I did in other post "status" then it is easy to join two files using ICETOOL based upon the key..
in bottom of the requirement , I want second file data (Test) to be attached in file1 for all the records..
There is no key. But we can generate temporary key in middle of the processing which I did in other post and get rid off from temp key when final output will come. So final output should be,
File1 record1+file2 record
File 1 record2+ file 2 record
Same file2 record will be appended in all file1 records..