I have two files. File1 is a VB file and LRECL is 500. Second file (File2) is a FB file and LRECL is 80.
In File1 the KEY which is 6 digit present in 4th position and is ZD.
In File2 the lower range starts from 1st position and is 6 bytes of length and upper range starts from 10th position and is of 6bytes length. But the ranges are PD.
My requirement is to create an output file based on the Key present in the range of File2.
So consodering the above example, the output should contain only two records from File1 marked in RED