Step 1: Specifying the JOB and the EXEC statements

Define the JOB and the EXEC statements in the IMS Batch Terminal Simulator JCL.

Procedure

  1. You can run your application in a DLI region, DBB region, BMP region, or JBP region. Determine the region type by evaluating the characteristics of each region in Determining the types of IMS region.

    To run your application in BMP or JBP region, you must start the IMS control region. You do not need to start the IMS control region if you are running your application in a DLI or DBB region.

  2. Prepare your IMS Batch Terminal Simulator JCL and code the JOB and the EXEC statements.

    Select the BTS cataloged procedure to use. The BTS cataloged procedures define the default values for the EXEC statement. To override these default values, provide the override values in the EXEC statement.

    For the EXEC statement, you can specify the following parameters:

    KW=region_type
    Specifies the type of IMS region.
    SOUT=x
    Specifies the SYSOUT class.

    The following figure shows an example. In this example:

    • Cataloged procedure BTS is selected to run IMS Batch Terminal Simulator in an IMS batch processing environment.
    • The KW parameter is set to DBB to run IMS Batch Terminal Simulator in a DBB region.
    • The SOUT class specifies B.
    //BTSJOB   JOB    ACCNT,NAME,MSGLEVEL=1
    //         EXEC   BTS,KW=DBB,SOUT=B
    

    For the definitions of other execution parameters that can be specified, see IMS System Definition.

    Important: For KW=DBB, if you do not supply a log data set in the JCL, you must specify DBRC=N as an EXEC parameter; otherwise, the region abends with a U0073. IMS always assumes update intent for BTS DBBBATCH execution. For an explanation of the abend, see IMS Messages and Codes.