Page 1 of 1

File handling in easytrieve

PostPosted: Thu Jun 05, 2014 12:54 pm
by russel
Hi all

I am writing an easytrieve where i am reading data from one file and comparing it with the data in other file.
Below is the scenario:

i ll read first row from file-a and compare it with the data in file-b, if macth found write that record of file-a to OP file.
Then again read 2nd record of file-a ,then same as above.

Now the problem i am facing is, during 2nd run i am not able to read the file-b from the start. its reading the record next to the record read, in last run.

so is there any way to read the file from the start.

Thanks.

Re: File handling in easytrieve

PostPosted: Thu Jun 05, 2014 1:01 pm
by BillyBoyo
Fortunately, since it is a terrible idea, No, you can't close and re-open a file in Easytrieve Plus to be able to read if for each individual record on another file.

SORT the files and use the Matched File Processing.

Re: File handling in easytrieve

PostPosted: Thu Jun 05, 2014 2:35 pm
by russel
Thnks for ur reply..

will try matched file processing.