Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
It's not clear what you want to do. You need to explain the "rules" more clearly.
Do you want to append the fields from the file2 records to the fields from the file1 records one-by-one, for example, append XXX to the first file1 record fields, append YYY to the second file1 record fields, append ZZZ to the third file1 record fields, append WWW to the fourth file1 record fields, append XXX to the fifth file1 record fields, and so on?
Or do you want to append fields depending on a key? If so, which field is the key and what do you want to do exactly?
Or do you want to do something else?
Does file2 always have 4 records or can it have more or less records?
I want File2 content to be appended to File1. For eg:
XXX appended to first record in File1 i.e AAA BBB CCC
YYY appended again to AAA BBB CCC
ZZZ appended again to AAA BBB CCC & so on.
I can say the File2 will have only 4 records
Record format of each file is fixed and Logical Rec length is 80.