View previous topic :: View next topic
|
Author |
Message |
dibyendumandal11111
New User
Joined: 13 Feb 2017 Posts: 7 Location: india
|
|
|
|
Hi,
Is there any way to close a flat file in ezytrieve so that Everytime I can read the file from start.
I know performance wise its not a good practice but my requirement is like that only. I can't make it a vsam file as depending upon certain condition I need to read the file with different key.
If I am not closing the file, during second read it is giving invalid file reference as it reached eof after first read.
Any help is appreciated.
Thanks in advance. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What have you already tried and what results did you get ?
What about the product documentation - not readily available on the net, but is available to licence holders. ?
what did google tell you ? |
|
Back to top |
|
|
dibyendumandal11111
New User
Joined: 13 Feb 2017 Posts: 7 Location: india
|
|
|
|
I have tried the below piece of code-
Job input File1
Finish e-o-j
....some statements
.....
Get File2
Do while(not eof File2)
.....some move statements
Get File2
End-Do
......
My requirement is for every record present in file1, I need to search File2 for some data.File2 is not in sorted order and I can't sort that also. Because depending upon certain condition my keys to search File2 will change. So I need to search File2 from beginning for each record in File1. Performance is not an issue,as this is an one-time job |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Is there not a CLOSE statement in the language ???
I don't have EASYTRIEVE here, in fact I don't even have a mainframe anymore ............ and even if I did, it would not be up to me to google and test on your behalf.
So, I ask once again, what did the product documentation say, and what did google tell you |
|
Back to top |
|
|
|