<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    The NoteBook of EricKong

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

    When the user types Input text Data on the CICS GUI Input Screen – say he presses Option 1 on the MAIN MENU Screen, and hits ENTER, the COBOL Program starts from the top at the PROCEDURE DIVISION, processes the data, and sends the next CICS Output Screen say BOOK MENU Screen, and gets killed(terminated). This is called one Invocation of the COBOL Online Program.

    The User stares at the BOOK MENU screen, decides what Input to type, and then after filling in the passenger details on the BOOK MENU Input Screen, hits ENTER. The COBOL Online Program restarts all over again from the PROCEDURE DIVISION, processes the Passenger Details and reserves a ticket, and sends the next CICS Output Screen say CONFIRMATION TICKET Screen, and gets killed. This is the second invocation of the COBOL Online Program.

    Every time, the COBOL Program starts from the PROCEDURE DIVISION, receives data from the Input Screen, processes the data, and sends the next output screen, and finally stops running. The Start-Receive Input-Process-Send Output-Stop cycle keeps repeating till you are done with your task. Each time you type data and hit ENTER, you invoke or run the COBOL Program to process your inputs.

    Sometimes, you need to save(remember) data between two successive runs, or invocations of the COBOL Online Program. Such data cannot be stored in Working Storage Areas of the COBOL Program. Working Storage Areas are created when the COBOL Program starts, and deleted when the COBOL Program stops. Working Storage Areas are rough-work areas(scratch-pad) of the COBOL Program, that live only as long as the COBOL Program runs.

    The requirement however, is to store(save) data across multiple invocations(runs) of the COBOL Online Program. When you want to store(save) data which is globally accessible across several runs a COBOL Program, you use Linkage Section Storage Areas
    .
    Given below is a simple picture that depicts how Linkage Section Storage areas differ from Working section storage areas. You’ve got a simple Storage Area A containing the value 0. You write a COBOL Program to ADD +1 TO A.

    Case 1: If A were to be a Storage Area in the WORKING-STORAGE SECTION.

    Image196[1]

    Each time the COBOL Program starts WS-A Storage Area is created with value 0, and the COBOL Program adds +1 to WS-A, so WS-A becomes 1. After the COBOL Program stops, WS-A is deleted. So, this doesn’t offer you memory of the past feature, with working storage areas you don’t remember, what was stored in WS-A previously, the last time the COBOL Program ran.

    Case 2: If A were to be a Storage Area in the LINKAGE SECTION.

    Image197[1]

    Here WS-A Storage which  is globally accessible and shared across the 1st run, 2nd run and the 3rd run of the COBOL. WS-A is a Linkage section Area, so this Storage area is independent of the COBOL Program. It helps to remember data of the past, pass data from one invocation(run) to the next successive invocation(run).

    DFHCOMMAREA is a Linkage Section Storage Area that helps to store(save) data, pass data around from one invocation(run) to another invocation of a COBOL Online Program in CICS. Thus, Linkage-section storage area DFHCOMMAREA plays an important role to remember and retain data between two successive invocations.

    posted on 2011-12-21 12:25 Eric_jiang 閱讀(352) 評論(0)  編輯  收藏 所屬分類: Mainframe
    主站蜘蛛池模板: 亚洲精品视频在线观看视频| 好紧我太爽了视频免费国产| 亚洲精品在线电影| 亚洲日韩人妻第一页| 性色av免费观看| 亚洲一区二区三区免费观看| 三年片在线观看免费| 黄页网站在线观看免费| 亚洲高清一区二区三区| 亚洲成综合人影院在院播放| 亚洲αv久久久噜噜噜噜噜| 国产91精品一区二区麻豆亚洲| 午夜男人一级毛片免费 | 日本免费一区二区三区最新vr| 久久国产高潮流白浆免费观看| 久久er国产精品免费观看8| 美女18一级毛片免费看| 77777亚洲午夜久久多喷| 亚洲日本香蕉视频观看视频| 亚洲高清在线观看| 18禁亚洲深夜福利人口| 亚洲国产亚洲片在线观看播放| 日木av无码专区亚洲av毛片| 亚洲精品无码国产| 亚洲午夜未满十八勿入网站2| 亚洲第一成人影院| 亚洲AV日韩精品一区二区三区| 一级全免费视频播放| 亚洲第一福利网站| 亚洲va无码手机在线电影| 亚洲夜夜欢A∨一区二区三区| av无码东京热亚洲男人的天堂| 亚洲?V乱码久久精品蜜桃 | 亚洲综合AV在线在线播放| 亚洲人成无码www久久久| 亚洲日本一区二区一本一道| 亚洲欧洲精品成人久久曰影片| 红杏亚洲影院一区二区三区| 不卡一卡二卡三亚洲| 亚洲中文字幕第一页在线| 日韩亚洲人成在线综合日本|