These days I was confused by VSAM share ways problem.There are 4 modes for VSAM buffering technique:NSR/LSR/GSR/RLS.And as i know many guys think it is best to use RLS mode.
But How can i know which mode i will use when I define a VSAM with SHAREOPTION(x,y)?NSR or LSR?I know if is a CICS file we can use CEMT to inquire the sharemode.So How about the batch VSAM file?How can I determine the mode we use?
SHAREOPTIONS is not related to NSR, LSR, etc. SHAREOPTIONS relates to how requests for access to data from different address spaces are handled. NSR / LSR / etc. are buffer management techniques and each are suitable for different situations -- and each may be used by different jobs that are running at the same time (that is, this is not fixed forever but varies by job).
If your batch job is using BLSR, your JCL will indicate so. You may have to contact your site support group about your question since there are products that can provide LSR buffering for batch programs.