Configure IMS

Walks you through the steps required to configure IMS in Enterprise Developer in preparation for running the demonstration application on Enterprise Server.

Register the Resource Definition File

IMS supports two transactions named /CICS and /IMS respectively. They are defined in a provided resource definition file, dfhdrdat. When you register this resource definition file, it enables your enterprise server region to switch back and forth between CICS and IMS modes. This is required to run the MFDEMO application.

Note: In general, we recommend that you leave the provided dfhdrdat file intact in its default location, and copy a new instance of the file into each project that requires it.
  1. Start an Enterprise Developer command prompt. If you need instructions, see To start an Enterprise Developer command prompt.
  2. Change to your c:\users\username\workspace\IMSSupport\system directory.
  3. Copy the default resource definition file installed with Enterprise Developer, dfhdrdat, from the %ProgramFiles(x86)%\Micro Focus\Enterprise Developer\etc\cas directory to the system project subdirectory.
  4. Enter the following command:
    caspcupg /dp=.

Zeroload the IMS database

  • In the Application Explorer view, right-click DEMO03DD.DBD; then select Database Utilities > Zeroload.

    This zeroloads the database and shows the process in the Console view.

Import IMS transactions

When you migrate an IMS application from the mainframe to Enterprise Developer, one of the required mainframe files is the stage 1 file containing your IMS transactions. In this demonstration, we have downloaded the MFDEMO stage 1 file for you, and then exported its contents to a flat text file, trancode.txt, which is part of your project. You need to import this flat text file into the standard data file used by Enterprise Server, named imsgen2.dat. You do this by running the mfims stage1imp command as follows:

  1. In the Application Explorer view, right-click the TRANCODE.TXT file, select Move, browse to and select the loadlib subfolder, and click OK.
  2. At your Enterprise Developer command prompt, change to your project's loadlib directory.
  3. Enter the following command:
    mfims stage1imp trancode.txt

    This command creates or updates the imsgen2.dat file in your project's loadlib directory.