Set Up the IMSSupport Project

Guides you through the steps required to create an Enterprise Developer project, import the MFDEMO IMS application files into the project, set the project properties, and perform additional required steps to enable the application to run in Enterprise Server.

Create the IMSSupport project

  1. In the Eclipse Application Explorer view, right-click Enterprise Development Projects; then select New COBOL Project > Mainframe COBOL Project.

    This starts the Mainframe COBOL Project wizard.

  2. Type IMSSupport into the Project Name field.
  3. Click Finish.

    The IMSSupport project is created and appears in the Application Explorer view.

Add project subdirectories

For this tutorial, you need to add two project subdirectories; one for generated output files, and one for system files used by Enterprise Server.

  • At a command prompt or using Windows File Explorer, change to your IMSSupport project directory, and create the following child subdirectories to IMSSupport:
    • loadlib
    • system

Set project properties

  1. In the Eclipse Application Explorer view, right-click the IMSSupport project; then select Properties
  2. Expand Micro Focus > Build Configurations; then click Link.
  3. In the Output path field, replace NewConfiguration.bin with loadlib, and then click Apply:
  4. In the left pane, expand Micro Focus > Project Settings; then click COBOL
  5. Ensure that the following properties are set as follows:
    Character set ASCII
    COBOL dialect Enterprise COBOL for z/OS
    Source Format Fixed
    Compile for debugging Yes
  6. If you made any property changes, click Apply.
  7. In the left pane under Project Settings, click IMS.
  8. Type loadlib into the Generated files field.
  9. In the IMS Database field in the right pane, type the full path to the loadlib project subdirectory, or use Browse to select it.
    Note: The Generated files setting is relative to the current project, but the IMS Database setting must be an absolute path.
  10. Click Apply.
  11. Expand Micro Focus > Project Settings > IMS; then click DBD Settings.
  12. Ensure that Generate map is set to Yes, and click Apply if you made a change.
  13. In the left pane, click MFS Settings
  14. Type loadlib into the MFS output field; then click Apply and Close to save all changes to the project properties.

Import demonstration application files

  1. In the Application Explorer view, select your project; then click File > Import > General > File System.
  2. Click Next.
  3. Browse to the %PUBLIC%\Documents\Micro Focus\Enterprise Developer\Samples\Mainframe\IMS\Classic\IVP, and then click Select Folder.
  4. In the right pane, check the following files, and then click Finish.
    • DEMO001T.CBL
    • DEMO001T.PSB
    • DEMO03DD.DBD
    • DEMO03DD.DBU
    • DEMO90.MFS
    • DEMO91.MFS
    • DEMO92.MFS
    • RGHTJUST.CBL
    • TRANCODE.TXT

    This creates copies of the files in the project directory.

    Because Eclipse is configured to build the project automatically, adding the files triggers a build. Build output files are created in the loadlib folder, and include:

    • DBDGEN2.DAT
    • DBDGEN2F.DAT
    • PSBGEN3.DAT
    • DEMO001T.ACB
    • DEMO03DD.ACB
    • The MFS files generation creates some .mid, .mod, .dif and .dof files. These files contain system configuration data. You should move them only if you know how to configure your enterprise server.
    • Building the DBD and the PSB files produces respectively dbdgen2.dat, dbdgen2f.dat, psbgen3.dat as well as some .acb files.