Record length of all the two input files are 80 and the key starts from the 1st position with the length 4. I want to display the matching records from both the input files into the output files like the below.
I tried in vain using join keys with reformat option but did not get the expected result. Can anyone please provide the sample code for this.
Key: 1 to 4 bytes
File1:
1000 Arun A
1001 Bala B
1007 Chan C
File2:
1001 Bala 1
1003 Kate 2
1004 Edwin 3
Output file
1001 Bala B
1001 Bala 1
Many thanks in Advance.