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

VSAM Performance tuning.. - New


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
razesh84

New User


Joined: 05 Apr 2010
Posts: 41
Location: Kolkata,India

PostPosted: Sun Aug 05, 2012 3:11 am
Reply with quote

With reference to this post.

I have few doubts on VSAM buffering.can you please answer below questions

1>Is there any way of checking what buffering technique(lsr/nsr/rls) is used for a VSAM file in a jobstep?

2>Does buffering technique depends on some parameter(DATACLASS?) of that VSAM during its definition?

3>Suppose, I have a KSDS .In one progam it used randomly and in other sequentially.Will the buffering technique be different for both cases?

4>What are the factors that influence buffering technique.
Can i change it(nsr to lsr or others) from jcl or i'm only allowed to increase buffers through bufni/bufnd?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sun Aug 05, 2012 3:43 am
Reply with quote

The Redbook VSAM Demystified
is something you could/should read this weekend.
I think you will find the answers to your questions there,
as well as learn the BUF.. parms do not affect VSAM files,
check out the AMP parm.
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: Sun Aug 05, 2012 3:44 am
Reply with quote

Please do not tailgate an old topic. Please start a new one, referring to one or more posts if appropriate.

Also, avoid soliciting answers. If you have a question, ask it of everyone, please.

Your topic has been split, and edited.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Sun Aug 05, 2012 7:25 am
Reply with quote

1. I'm not aware of any external way to tell, although there are some general guidelines. If the job has SUBSYS=BLSR specified, then I would expect it to be using batch LSR; otherwise, since LSR is specific to CICS and some select vendor programs, a batch job won't be using LSR.

2. Default buffering is set during VSAM definition -- the BUFFERSPACE parameter indicates the amount of buffer space allocated by default, and is set to 2 times data CI size plus 1 times index CI size unless overridden. This is grossly inadequate in most cases. DATACLASS may be used to define an extended format VSAM file, but has little role to play in buffer allocation.

3. If the option is there, LSR works better with random access while NSR is best for sequential access. Random access requires more index buffers than data buffers since you're using the index values to retrieve the record, while sequential access requires plenty of data buffers and not many index buffers -- one to be precise.

4. Program access is the guiding factor -- random versus sequential versus mixed (AKA skip sequential). Allocate plenty of index buffers in the first case, plenty of data buffers in the second case, and plenty of both in the third case. If your site has BLSR installed, you can use it but otherwise your basically limited to AMP=(BUFND=, BUFNI=) to control buffers.

All this and much more is explained in VSAM Demystified -- you need to start reading.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 582
Location: London

PostPosted: Wed Aug 08, 2012 5:37 pm
Reply with quote

You should enquire if your site has any automatic buffering tools installed.

It would still be worth reading the VSAM Demystified and possibly the Using Datasets manuals anyway, for a better understanding.

DATACLAS can affect buffering via the RECORD ACCESS BIAS field and SYSTEM MANAGED BUFFER field settings although I don't fully understand how, not having used these myself.

Your choice of CISIZE can be significant as it may or may not have a corresponding CICS buffer pool
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts exploiting Z16 performance PL/I & Assembler 2
No new posts CVDA value for RRDS VSAM dataset. CICS 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top