VSAM CI SIZE

Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems
ewansyo
Posts: 2
Joined: Thu Mar 14, 2013 8:14 pm
Skillset: CICS, COBOL, JCL, EASYTRIEVE, MQ, DB2
Referer: Searched in the web

VSAM CI SIZE

Postby ewansyo » Thu Mar 14, 2013 8:41 pm

How does the CI SIZE affect the ESDS VSAM file in terms of processing speed? Does larger CI SIZE much faster?

c62ap90
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Skillset: COBOL, OS JCL and Utilities, IMS DB/DC, CICS, VSAM, DB2, Librarian, Panvelet, Endevor, Clists/Panels, SDSF, JES, and Easytrieve Plus.
Referer: Google search

Re: VSAM CI SIZE

Postby c62ap90 » Fri Mar 15, 2013 12:33 am

I always start define as CISZ (4096) and then depending on, for example, Splits - I contact our Systems Programmer for VSAM file tuning.

Some more info...
http://pic.dhe.ibm.com/infocenter/pdthe ... pvsm51.htm
An average CISZ of 4K is suitable for most applications. A smaller CISZ means faster retrieval for random processing at the expense of inserts (that is, more CISZ splits and therefore more space in the data set). A larger CISZ results in the transfer of more data across the channel for each READ. This is more efficient for sequential processing, similar to a large OS BLKSIZE.

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

Re: VSAM CI SIZE

Postby Robert Sample » Fri Mar 15, 2013 1:15 am

For an ESDS, I'd probably go with 18432 which is most space-efficient. However, if the application is running under CICS 4096 might work better as there is less data written at a time. If the application is running only batch ESDS with no alternate indexes, then 32768 might be your best CI SIZE. There is no one "true" answer to a question like yours -- it depends upon the site, whether the ESDS file has alternate indexes, whether the ESDS file is used online only or batch only or both, and other factors.

ewansyo
Posts: 2
Joined: Thu Mar 14, 2013 8:14 pm
Skillset: CICS, COBOL, JCL, EASYTRIEVE, MQ, DB2
Referer: Searched in the web

Re: VSAM CI SIZE

Postby ewansyo » Fri Mar 15, 2013 9:45 am

Hi,

Thank you both for the helpful responses. :)

The ESDS file has no alternate index and will be used only as an online log, we would only do write to this file. So does it mean that 32768 might be good for this type of file?

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

Re: VSAM CI SIZE

Postby NicC » Fri Mar 15, 2013 1:06 pm

If the application is running only batch ESDS with no alternate indexes, then 32768 might be your best CI SIZE.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

Re: VSAM CI SIZE

Postby Robert Sample » Fri Mar 15, 2013 4:58 pm

For an online log, 4096 is probably your best choice. You want logs to be written fairly quickly, and hence a smaller CI SIZE makes sense.


  • Similar Topics
    Replies
    Views
    Last post