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
 

 

Cobol Open Statement & VSAM Buffer

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Cobol Open Statement & VSAM Buffer
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Thu Feb 02, 2012 1:27 am    Post subject: Reply to: Cobol Open Statement & VSAM Buffer
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 6 Fri Jan 20, 2017 12:36 pm
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm


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