I have 3 files created with the following names. Both Header and Trailer contains one record every time.
Input Files :
Header.txt Detail.txt Trailer.txt
I need to copy record from header and insert at the first record of Detail record and also copy record from trailer and insert at the end of Detail record.