Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How can I close a flat file in Ezytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: How can I close a flat file in Ezytrieve
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: 8787
Location: Welsh Wales

PostPosted: Wed Apr 17, 2019 3:05 pm    Post subject:
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    Post subject:
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: 8787
Location: Welsh Wales

PostPosted: Thu Apr 18, 2019 11:56 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File transfer issue with end of line ... VINAY PALLELA TSO/ISPF 4 Thu Nov 14, 2019 12:01 am
No new posts File compare, where file has header a... VINAY PALLELA SYNCSORT 8 Thu Nov 07, 2019 5:05 pm
No new posts OMIT first and last column of a pipe-... karthikb_itpro DFSORT/ICETOOL 1 Fri Nov 01, 2019 8:24 pm
No new posts How to place name of the file where t... danielgp89 SYNCSORT 18 Thu Oct 17, 2019 12:55 am
No new posts Need help in parsing record in VBA file guptae DFSORT/ICETOOL 4 Fri Oct 11, 2019 2:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us