首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何计算分配给VSAM文件的空间

如何计算分配给VSAM文件的空间
EN

Stack Overflow用户
提问于 2021-02-02 19:34:49
回答 1查看 305关注 0票数 0

我正在创建一个工具,它将估计空间应给予VSAM文件的基础上,记录的数量,记录长度和块大小参数。当我通过互联网上的不同来源时,我在IBM网站上得到了一篇关于空间计算的文章,如下所示,但我不理解一些信息,比如,第5点中的33是从哪里来的,以及CI和CA中是如何采用10%和20%的。

代码语言:javascript
复制
Device type. 3390
Unit of space allocation. Cylinders
Data control interval size. 1024 bytes
Physical block size (calculated by VSAM). 1024 bytes
Record size. 200 bytes
Free space definition – control interval. 20%
Free space definition – control area. 10%
Number of records to be loaded. 3000

You can calculate space for the data component as follows:

1. Number of bytes of free space (20% × 1024) = 204 (round down)
2. Number of loaded records per control interval (1024–10–204)/200 = 4.
3. Number of physical blocks per track = 33.
4. Number of control intervals per track = 33.
5. Maximum number of control intervals per control area (33 x 15) = 495.
6. Number of loaded control intervals per control area (495 - 10% x 495) = 446.
7. Number of loaded records per cylinder (4 x 446) = 1784.
8. Total space for data component (3000/1784) (rounded) = 2 cylinders.

The value (1024 – 10) is the control interval length minus 10 bytes for two RDFs and one CIDF. The 10. record size is 200 bytes. On an IBM 3380, 31 physical blocks with 1024 bytes can be stored on one track. The value (33 × 15) is the number of physical blocks per track multiplied by the number of data tracks per cylinder.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-03-03 06:40:34

CA和CI上的可用空间(百分比)由定义群集IDCAMS命令中的FREESPACE参数确定。以上公式中的值仅为示例。如果VSAM的定义不同,则应对其进行更改。

轨道上3390的最大大小是56664,但您必须记住用于扇区间间隙的空间。更多的扇区-更多的间隙,更少的数据可用空间。33是3390磁道上的最大块数,块大小在1019和1086之间(您可以在bitsavers文档"IBM 3390 Direct Storage Access reference“中找到该计算和参考表)

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66008911

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档