Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Can I use a close stmt on a sequential file in eztrieve?
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

Site Director


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

PostPosted: Tue Mar 04, 2008 10:42 pm    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Tue Mar 04, 2008 11:01 pm    Post subject: Re: Can I use a close stmt on a sequential file in eztrieve?
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    Post subject:
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    Post subject: Reply to: Can I use a close stmt on a sequential file in ezt
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

Senior Member


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

PostPosted: Sun Mar 16, 2008 9:55 pm    Post subject:
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

Site Director


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

PostPosted: Mon Mar 17, 2008 5:10 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us