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

Can I use a close stmt on a sequential file in eztrieve?


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
keerthi kota

New User


Joined: 02 Mar 2008
Posts: 4
Location: hyderabad

PostPosted: Tue Mar 04, 2008 8:40 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Mar 04, 2008 10:42 pm
Reply with quote

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

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Tue Mar 04, 2008 11:01 pm
Reply with quote

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

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed Mar 05, 2008 7:20 am
Reply with quote

In EZT you cannot do File OPEN or CLOSE
Back to top
View user's profile Send private message
keerthi kota

New User


Joined: 02 Mar 2008
Posts: 4
Location: hyderabad

PostPosted: Sun Mar 16, 2008 8:56 pm
Reply with quote

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

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sun Mar 16, 2008 9:55 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Mar 17, 2008 5:10 am
Reply with quote

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
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top