File handling in easytrieve



Unicenter CA-Easytrieve Plus Report Generator: CA's information retrieval and data management tool

File handling in easytrieve

Postby russel » Thu Jun 05, 2014 12:54 pm

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.
russel
 
Posts: 7
Joined: Wed Feb 13, 2013 4:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: File handling in easytrieve

Postby BillyBoyo » Thu Jun 05, 2014 1:01 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: File handling in easytrieve

Postby russel » Thu Jun 05, 2014 2:35 pm

Thnks for ur reply..

will try matched file processing.
russel
 
Posts: 7
Joined: Wed Feb 13, 2013 4:20 pm
Has thanked: 0 time
Been thanked: 0 time


Return to CA-Easytrieve

 


  • Related topics
    Replies
    Views
    Last post