IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How can I close a flat file in Ezytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dibyendumandal11111

New User


Joined: 13 Feb 2017
Posts: 7
Location: india

PostPosted: Wed Apr 17, 2019 2:19 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Apr 17, 2019 3:05 pm
Reply with quote

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
View user's profile Send private message
dibyendumandal11111

New User


Joined: 13 Feb 2017
Posts: 7
Location: india

PostPosted: Wed Apr 17, 2019 3:25 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 18, 2019 11:56 am
Reply with quote

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 icon_evil.gif ............ 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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
Search our Forums:

Back to Top