The NoteBook of EricKong

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            611 Posts :: 1 Stories :: 190 Comments :: 0 Trackbacks
          JCL is very simple and easy to master. There are only eight different JCL statement Types. JCL is is actually a piece of cake, because you use only three of these JCL statements most often – JOB, EXEC and DD.

          You’ll use these very often!

          //name JOB parameters ...
          //name EXEC parameters ...
          //name DD parameters ...

          You’ll use these to “gift-wrap” and pack your JCLs into PROCs

          //name PROC parameters ...
          //name PEND parameters ...

          These are [optional] -
          //* comment
          /* delimiter
          // null ending statement

          Now, I shall focus mostly on the 3 important statement types – JOB, EXEC and DD first, so that you can start to write JCL’s and become productive soon. In the later course of this tutorial, I shall also explain to you how to pack JCLs into Procedures using PROC and PEND.

          The next figure shows how I use JOB, EXEC and DD Statements to copy a file using IEBGENER Program. Below you shall find a stripped down, bare-bones version of the same.

          General format:
          //AGY0157A JOB parameters..
          //*    
          //STEP01 EXEC parameters..
          //SYSUT1 DD parameters..
          //SYSUT2 DD parameters..
          //SYSPRINT DD parameters..
          //SYSIN DD parameters..
          //    

          I hope you recognized this pattern – JOB, EXEC followed by one or more DD Statements. The JCL for all you Batch Jobs will start with one JOB Statement. Following this, the EXEC statement tells which program to run. And, then you code several DD(Data Device) statements, for specifying the input and output files being used by the program. The DD Statement, would assign a symbolic name to an actual dataset name.

          Given below is the JCL that executes the IEBGENER Program to copy the contents of the Physical sequential(PS) file AGY0157.INPUT.DATA to AGY0157.OUTPUT.DATA. Click here to download this Job-listing on your box.

          Image98[1] 
          posted on 2011-12-21 10:45 Eric_jiang 閱讀(180) 評論(0)  編輯  收藏 所屬分類: Mainframe
          主站蜘蛛池模板: 梅河口市| 永平县| 平谷区| 平原县| 宁化县| 曲阜市| 广宁县| 兴国县| 揭东县| 东乌| 石家庄市| 龙南县| 吉首市| 石柱| 临潭县| 宣威市| 景泰县| 白城市| 元江| 禄劝| 河北区| 定日县| 永州市| 颍上县| 尼勒克县| 兰西县| 平凉市| 武汉市| 阿尔山市| 西畴县| 进贤县| 佛坪县| 乌拉特后旗| 中方县| 个旧市| 延安市| 太仆寺旗| 顺昌县| 昆明市| 武山县| 共和县|