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

Cobol Open Statement & VSAM Buffer


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kevodaly

New User


Joined: 05 Mar 2009
Posts: 1
Location: Ireland

PostPosted: Thu Feb 02, 2012 1:07 am
Reply with quote

Hi.

I have a TSO batch job that acts as an interface for MQ messages. When a message is received, the program will run and depending on the transaction type, other Cobol modules may be called.

One of these modules accesses a VSAM file. This module will be called once for each message received. The module contains a Cobol OPEN, READ using a key and CLOSE of that VSAM file.

My question is, does the Cobol OPEN statement refresh buffers associated with that VSAM file? i.e. For each call of that module, will the READ of the VSAM file be a physical read, or could it fetch a record from the buffer if it happens to be in the same Control Interval.

Thanks for your help!
Kevin
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Feb 02, 2012 1:27 am
Reply with quote

I've always assumed that when you close a file, that is it. If you open again, then you'd be starting clean. No buffers until first read/write from your program.

If I wanted to hope for something different, I'd check it out in "the manuals"/google.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL sorting, with input GDG base COBOL Programming 7
No new posts Need help with ADABAS query (COBOL-AD... All Other Mainframe Topics 0
No new posts Replacing FILLER with FILLER<SeqNu... DFSORT/ICETOOL 2
No new posts MF professionals open positions Mainframe Jobs 0
No new posts Compile Sp Cobol base COBOL Programming 1
Search our Forums:

Back to Top