Please explain the logics. Based on what is the line
CCODE NUMBER 45-65
adapted and inserted the way you post?
EDIT: I guess you want to extract data from OTHER files based on the "record description" in FILE1 and FILE2 (which would not be correctly done by your script). Still my question persists...
Extract all record from file 1. Record1 Record2 Record3 Record4 from file and Extract Record2 from file2
The combined file will be like Record1 Record2 Record3 Record2(file2) Record4