Here is my requirement i have two input say INFILE1& INFILE2 files with 15 bytes of key being used to match them.
If a match is found then i need to check if the last two bytes for the next record for INFILE1
How effectively can i do that in a IF matched clause?
To make it make it more clear let say INFILE 1 contents are
and INFILE2 contents are
We'll have the match for INFILE1 and INFILE2 for the first record; but if in INFILE1 a record as shown above exist then i need to perform some processing and if it dosen't exist then i need to perform some other processing.
Now my question is how efectively can i read the next record of INFILE1 within the MATCHED clause
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
I believe you need to re-think your implementation.
You have chosen to use a non-existant "read-ahead" feature to check values in a coming record before it is really read. This does not exist in Easytreieve or COBOL (or any standard sequential processing).