The NoteBook of EricKong

            BlogJava :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
            611 Posts :: 1 Stories :: 190 Comments :: 0 Trackbacks

          Say, that you want to store the details about the Employees working in the Company. Each EMPLOYEE-RECORD detail is generally 56 characters. To store Employee data in the COBOL Program, I create an EMPLOYEE-RECORD Storage Area as follows.

          Image242

          I know that, EMPLOYEE-RECORD data contains the Name of the Employee(30 chars) and the address of the employee(26 chars). I break down EMPLOYEE-RECORD into NAME and EMP-ADDRESS Fields as follows.

          Image243

          But, the name itself consists of First-name(10), Middle-name(10) and Last-name(10). Employee-Address Data consists of Street(10), City(10) and Pin-code(06). I can provide an extra-level of detailed breakup.

          Image240

          This way, you can take a 01-Level Data-item, and break it down further into smaller storage-areas, depending on the granularity-of-detail, you wish to capture.
           
          77-level storage-areas are independent data-items, they cannot be broken down further into smaller storage areas. Moreover, they cannot participate under a bigger storage area.

          If EMPLOYEE-RECORD were to be an 77-Level Independent Variable, it would look like this. Note that, now you can’t chop it!

          Image241

          posted on 2011-12-27 10:13 Eric_jiang 閱讀(231) 評(píng)論(0)  編輯  收藏 所屬分類: Mainframe
          主站蜘蛛池模板: 漳平市| 建德市| 左贡县| 肃北| 黎川县| 溧水县| 资阳市| 泰兴市| 上饶县| 汶川县| 磐石市| 沾益县| 甘泉县| 广灵县| 龙口市| 兰考县| 平阳县| 北安市| 晋中市| 义马市| 鹤山市| 常宁市| 鹤峰县| 中山市| 嘉善县| 瓮安县| 濮阳县| 河曲县| 民乐县| 罗山县| 天峻县| 封丘县| 彝良县| 朔州市| 邹城市| 锦屏县| 班玛县| 澄城县| 宁强县| 黄陵县| 大关县|