Hi,
I am new to this forum and this is my 1st post and i need some urgent help...
I have 2 input files. 1st file has a few hundred records and the 2nd has around 5 million records.
Now, I have to compare the 2 files based on a 22 byte key, and for every key value in the 1st file, i have to read/write 1 record from the 2nd file which is just greater than the key.
Note: both files are sorted on the key, and the keys would never match.
Input file 1:
1. 2222222222222222C110000
2. 5555555555555555C110000
3. 6666666666666666C110000
4. 7777777700000000C110000
5. 7777777799999999C119999
6. 8888888888888888C110221
.
.
.
.
Input file 2:
1. 1111111111111111C110000
2. 3333333333333333C110000
3. 5000000000000000C110000
4. 5111111111111111C110000
5. 7000000000000000C110000
6. 7777777700000000C110000
7. 8000000000000000C119999
8. 9999999999999999C110221
.
.
.
.
OUTPUT FILE:
1. 3333333333333333C110000
2. 7000000000000000C110000
3. 7000000000000000C110000
4. 8000000000000000C119999
5. 8000000000000000C119999
6. 9999999999999999C110221
.
.
.
Plz note that we have to find the 1st record from the 2nd file which is just greater than the 1st files key. And also that the we cant hardcode the key values in the JCL since there can be hundreds of key vales.
Any kind of hint/help would be really appreciated.