View previous topic :: View next topic
|
Author |
Message |
keerthi kota
New User
Joined: 02 Mar 2008 Posts: 4 Location: hyderabad
|
|
|
|
Hi,
I am accessing a sequential file explicitly using a get stmt ( Not passing through job stmt) and upon some condition everytime I need to process the file from the begining. Please tell me how can I accomplish this? I could see in some docs a close stmt with syntax CLOSE FILENAME. But this is giving me syntax errors. It is not recognizing Close key word. Can I use Close for sequential files or is there any other way I can do this? I am not mentioning the file type any where. Not sure how to mention for sequential files. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You probably do NOT need to close and re-open the file. This is especially true if you are trying to read one file and find matching records in another. The proper way to do this is a 2-file match/merge.
If you have some other requirement, please explain and someone may have a suggestion. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
keerthi kota wrote: |
I could see in some docs a close stmt with syntax CLOSE FILENAME. |
But not EZT docs.....
There is no close, believe me, I had an application that really could have used one.....grumble...... |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
In EZT you cannot do File OPEN or CLOSE |
|
Back to top |
|
|
keerthi kota
New User
Joined: 02 Mar 2008 Posts: 4 Location: hyderabad
|
|
|
|
I didnt get what exactly it means by a 2 file match\merge. Please explain and by the way I read in some EZT DOCs only about closing of a file. I thought may be some newer version supports it. The version I have in my project may be doesn't |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
I don't use EZT but what's there in this
Quote: |
I didnt get what exactly it means by a 2 file match\merge. |
which can not be understood... When you try to read one file and find matching records in another & do some further eprocessing to write output...this is file matching at a very crude level. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If you explain your process, we can probably provide more usable suggestions.
To see an example of a 2-file match/merge, there is a "sticky" near the top of the COBOL section of the forum. Downlosd that text file, review it, and post any questions you have here. |
|
Back to top |
|
|
|