The NoteBook of EricKong

            BlogJava :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
            611 Posts :: 1 Stories :: 190 Comments :: 0 Trackbacks
          When you create a sequential dataset(PS), it occupies a large amount of storage space(minimum 50,000 bytes). Sometimes for doing trivial tasks,  storing only a few records, you would not be utilising the entire space available in a sequential file. Thus most of the space in the Sequential file is wasted and is blocked.

          IBM provides a way to split or partition up the space in a sequential data-set. IBM Software engineers invented the Partitioned Dataset, often called PDS. Each part is called a Member. A Partitioned Dataset can have many members(parts). Each member behaves like a sequential file on it own.

          How does the PDS then keep track of its members? A Partitioned Dataset(PDS) includes a directory(like a telephone directory), which is a diary or journal, where MVS Operating system keeps track of the members in a PDS. The members of a PDS can be scattered haphazardly anywhere in the vast computer storage space. Well-then, you consult the directory to find out the members in the PDS. Just like in a book, the index tells you, the keyword you are looking for, and the page no. where it can be found, the same way, the directory tells you the member name, and the computer memory address where you can find it. Thus, the directory maintains the list of member-names and pointers to the actual physical place in Computer Memory where they are stored.

          Not just this, but the directory also keeps track of its statistics, like when each member was created, when was it last changed/viewed by somebody, how much space it occupies, which TSO-userid created it and bla bla..

          On the Windows Operating System, we generally keep related files together in a folder. On the same lines, you keep related members together in one PDS. Thus, a Partitioned Dataset is Mainframes-counterpart of Folders on Windows Operating System. Folders contain many related files. A PDS contains many related members.

          When create this special type of partitioned sequential file – Partitioned Dataset, you need to decide, how big its directory is going to be. The bigger the directory, the more no. of partitions(members) it will support. You express this in terms of Directory Blocks. Generally, 1 directory block can store information about 5 members. The directory always remains fixed, can’t grow bigger on the fly, so you need to careful when specifying the directory blocks, and you have to do it in advance.

          Image84[1]

          To sum up, a Partitioned Dataset(PDS) is a specialised type of sequential file, which is divided into members, each member being a sequential dataset by itself. Thus, a PDS acts like a library which houses several related files.
          posted on 2011-12-20 17:21 Eric_jiang 閱讀(195) 評(píng)論(0)  編輯  收藏 所屬分類: Mainframe
          主站蜘蛛池模板: 维西| 明水县| 大冶市| 武汉市| 绥德县| 宜丰县| 渝中区| 崇明县| 阳信县| 迁西县| 玉山县| 刚察县| 海淀区| 崇明县| 辽源市| 兴和县| 如东县| 辽阳市| 新晃| 白水县| 乐昌市| 保靖县| 苏尼特右旗| 秭归县| 福鼎市| 五常市| 灵台县| 镇平县| 扎赉特旗| 清涧县| 根河市| 斗六市| 济南市| 彭阳县| 鱼台县| 当雄县| 米林县| 桂平市| 蕉岭县| 宁河县| 合川市|