Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums 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: 8784
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: 8784
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 Access file which has DSNTYPE=LIBRARY maxsubrat JCL & VSAM 11 Fri Jun 21, 2019 4:09 pm
No new posts Mainframe to linux file count mismatch shreya19 All Other Mainframe Topics 4 Thu Jun 13, 2019 9:49 pm
No new posts Copy physical Tape files to a Mainfra... Dadi Krishna Teja JCL & VSAM 11 Thu May 16, 2019 10:25 pm
No new posts Pipe Delimited File to xpand thesumitk COBOL Programming 15 Tue Apr 02, 2019 1:02 pm
No new posts Split input file into multiple files ... srini24 DFSORT/ICETOOL 1 Sat Mar 30, 2019 9:39 pm

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