Changing the JCL skeletons for batch mode

Several functions in ZDT/Db2 are available in batch mode. For these functions to run successfully, appropriate job control must be provided. This is done by means of the set processing options and job control skeletons. The job control skeletons for ZDT/Db2 are the members HFM2FTSL and HFM2FTEX in HFM.SHFMSLIB.

HFM2FTSL

HFM2FTSL assigns a STEPLIB DD concatenation which comprises the ZDT/Db2 load library and the Db2® load libraries for the Db2 subsystem you are using. (The Db2 load libraries are specified by DB2LLIB in the HFM2SSDM macro for the Db2 subsystem you are using, in HFM2POPT. For more information, see HFM2SSDM.)

HFM2FTSL assumes that you have installed ZDT/Db2 into the default target libraries, and that the load library is HFM.SHFMMOD1. If you have installed ZDT/Db2 into a different library, or if you do not want the load library in a STEPLIB DD concatenation (for example, if HFM.SHFMMOD1 is in your LINKLIST), you must modify the HFM2FTSL skeleton accordingly.

You modify HFM2FTSL using the usermod HFM2UMDB. HFM2UMDB is distributed in HFM.SHFMSAM1. To do this:

  1. Copy the member HFM2FTSL from HFM.SHFMSLIB to your own source library.
  2. To change the name of the load library, change the line:
    )SET SHFMMOD1 = HFM.SHFMMOD1
    to read:
    )SET SHFMMOD1 = your.loadlib
    where your.loadlib is the name of the load library where you installed ZDT/Db2.
    To change the skeleton so that no STEPLIB DD statement is generated for the load library, change the line:
    )SET SHFMMOD1 = HFM.SHFMMOD1
    to read:
    )SET SHFMMOD1 = &Z
    Note: A STEPLIB DD statement will always be generated for the Db2 load libraries for the Db2 subsystem you are using.
  3. Modify the HFM2UMDB member in HFM.SHFMSAM1 to meet your site's requirements. Refer to the usermod for information about changes you might need to make.
  4. Install SMP/E usermod HFM2UMDB.
Note: ZDT/Db2 does not provide support for the automatic generation of job routing control statements in the JCL generated by HFM2FTSL.

HFM2FTEX

HFM2FTEX provides printer information to HFM2FTSL. You might also need to modify HFM2FTEX, for example, to change the DCB information for SYSPRINT.

Modify HFM2FTEX using the usermod HFM2UMDE, which is distributed in HFM.SHFMSLIB. To do this:

  1. Copy the member HFM2FTEX from HFM.SHFMSLIB to your own source library.
  2. Modify one or more of the following three statements in HFM2FTEX in your library, as required. Do not change any other statements in HFM2FTEX.
    //SYSPRINT DD SYSOUT=*
    //HFMTSPRT DD SYSOUT=*
    //SYSTERM  DD SYSOUT=*
    For example, you might want to change
    //SYSPRINT DD SYSOUT=*
    to
    //SYSPRINT DD SYSOUT=*,DCB=(RECFM=FBA,LRECL=133)
  3. Modify the HFM2UMDE member in HFM.SHFMSAM1 to meet your site's requirements. Refer to the usermod for information about changes you might need to make.
  4. Install SMP/E usermod HFM2UMDE.