View previous topic :: View next topic
|
Author |
Message |
Kumail Fazal
New User
Joined: 29 May 2007 Posts: 12 Location: Mysore
|
|
|
|
Hi All,
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
123456789PQRSD0
123456789PQRSD2
and INFILE2 contents are
123456789PQRSD0
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 |
|
Back to top |
|
|
lcmontanez
New User
Joined: 19 Jun 2007 Posts: 50 Location: Chicago
|
|
|
|
Sync process control how the records are read so you cant force a read.
Don't give up....EZ+ does handle dups. If possible have file 1 be unique keys and file two contain the dups.
Give it a try. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
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). |
|
Back to top |
|
|
|