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 閱讀(189) 評論(0)  編輯  收藏 所屬分類: Mainframe
          主站蜘蛛池模板: 荣成市| 华容县| 水富县| 尚志市| 额敏县| 屏东县| 微博| 华池县| 佛坪县| 庆阳市| 柞水县| 沅陵县| 紫阳县| 五寨县| 剑河县| 隆昌县| 府谷县| 哈巴河县| 赣州市| 尼勒克县| 姜堰市| 广元市| 兴隆县| 沭阳县| 沈阳市| 勃利县| 定襄县| 兴文县| 武胜县| 怀集县| 定陶县| 盖州市| 博客| 绥阳县| 石城县| 鹤峰县| 元氏县| 荥阳市| 廉江市| 馆陶县| 襄垣县|