EntireX Version 9.7
 —  Software AG IDL Extractor for COBOL  —

Scenario I: Create New IDL and Server Mapping Files


Step 1: Start the IDL Extractor for COBOL Wizard

graphics/selectWizard.png

To continue, press Next and continue with Step 2: Select a COBOL Extractor Environment or Create a New One.

Top of page

Step 2: Select a COBOL Extractor Environment or Create a New One

If no COBOL extractor environments are defined, you only have the option to create a new environment. An IDL Extractor for COBOL environment provides defaults for the extraction and refers to COBOL programs and copybooks that are

or

graphics/createNewEnv.png

This page offers the following options:

Start of instruction setTo select an existing local COBOL extractor environment

  1. Check radio button Choose an existing COBOL extractor environment and select a local COBOL extractor environment.

  2. Continue with Step 3: Select the COBOL Source below.

Start of instruction setTo select an existing remote COBOL extractor environment

  1. Check radio button Choose an existing COBOL extractor environment and select a remote COBOL extractor environment.

  2. Continue with Step 3: Select the COBOL Source below.

Start of instruction setTo create a new local COBOL extractor environment

  1. Check radio button Create a new COBOL extractor environment.

  2. Follow the instructions in the Preferences section under Create New Local Extractor Environment (z/OS, z/VSE, BS2000/OSD and IBM i) | Micro Focus (UNIX and Windows) in the IDL Extractor for COBOL documentation.

  3. Continue with Step 3: Select the COBOL Source below.

Start of instruction setTo create a new remote COBOL extractor environment

  1. Check radio button Create a new COBOL extractor environment.

  2. Follow the instructions in the Preferences section under Create New Remote Extractor Environment z/OS | BS2000/OSD in the IDL Extractor for COBOL documentation.

  3. Continue with Step 3: Select the COBOL Source below.

Top of page

Step 3: Select the COBOL Source

Selecting the COBOL source is different depending on whether the COBOL source is stored locally on the same machine where the EntireX Workbench is running, or on a remote host computer.

Selecting a COBOL Source Stored Locally

In step 2 above you selected or created a local extractor environment for z/OS. If you select a local COBOL extractor environment, you can browse for the COBOL program in the local file system. If you selected the COBOL source file before you started the wizard, and do not have a directory defined in the preferences of your Local Extractor Environment, the file location is already present. See Create New Local Extractor Environment (z/OS, z/VSE, BS2000/OSD and IBM i) | Micro Focus (UNIX and Windows) in the IDL Extractor for COBOL documentation. To browse for the COBOL source file, choose Browse.

graphics/createNew_selectSource_local.png

Selecting a Member from a Partitioned Data Set on Remote Host (z/OS)

In step 2 above you selected or created a remote extractor environment. The following page offers all data sets starting with the high-level qualifier defined in the Filter Settings of the remote extractor environment. See Create New Remote Extractor Environment (z/OS) under IDL Extractor for COBOL Preferences.

graphics/selectSourceDataset.png

Select the partitioned data set from which you want to extract and choose Next. Proceed depending on the selected data set type. See Selecting a Member from a Partitioned Data Set on Remote Host (z/OS).

The following page offers all members contained in the partitioned data set selected in the previous step, starting with the member name prefix defined in the Filter Settings of the remote extractor environment. See Step 3: Define the Remote Extractor Environment under IDL Extractor for COBOL Preferences.

graphics/selectSourceFromDataset.png

Select the member from which you want to extract. You can select only one COBOL source. The source can be a COBOL program or a COBOL copybook.

Choose Next and continue with Step 4: Define the Extraction Settings and Start Extraction below.

Selecting a Member from a CA Librarian Data Set on Remote Host (z/OS)

In step 2 above you selected or created a remote extractor environment. The following page offers all data sets starting with the high-level qualifier defined in the Filter Settings of the remote extractor environment. See Create New Remote Extractor Environment (z/OS) under IDL Extractor for COBOL Preferences.

graphics/selectSourceDataset.png

Select the CA Librarian data set from which you want to extract and choose Next. Proceed depending on the selected data set type. See Selecting a Member from a CA Librarian Data Set on Remote Host (z/OS).

The following page offers all members contained in the CA Librarian data set selected in the previous step, starting with the member name prefix defined in the Filter Settings of the remote extractor environment. See Step 3: Define the Remote Extractor Environment under IDL Extractor for COBOL Preferences.

graphics/selectSourceFromCalib.png

You can select only one COBOL source. The source can be a COBOL program or a COBOL copybook. If you want to extract from

Selecting a Member Archive Level from a CA Librarian Data Set on Remote Host (z/OS)

The following page offers all archive levels of the previously selected member.

graphics/createNew_selectSource_remote-mal.png

Select the member from which you want to extract. You can select only one archive level. Choose Next and continue with Step 4: Define the Extraction Settings and Start Extraction below.

Selecting an Element (S) from an LMS Library on Remote Host (BS2000/OSD)

In step 2 above you selected or created a remote extractor environment.

The following page offers all data sets starting with the high-level qualifier defined in the Filter Settings of the remote extractor environment. See Create New Remote Extractor Environment (BS2000/OSD) under IDL Extractor for COBOL Preferences .

graphics/selectFromRemote_bs2.png

The following page offers all elements contained in the LMS library selected in the previous step, starting with the member name prefix defined in the Filter Settings of the remote extractor environment. See Step 3: Define the Remote Extractor Environment under IDL Extractor for COBOL Preferences.

graphics/selectFromRemote_bs2_elements.png

Select the element from which you want to extract. You can select only one COBOL source. The source can be a COBOL program or a COBOL copybook.

Choose Next and continue with Step 4: Define the Extraction Settings and Start Extraction below.

Top of page

Step 4: Define the Extraction Settings and Start Extraction

In this page you specify the COBOL source and Software AG IDL target options used for IDL extraction.

graphics/createNew_settings.png

Operating System

The operating system is already defined in the extractor environment in the IDL Extractor for COBOL preferences, see IDL Extractor for COBOL Preferences.

Interface Type

The interface type must match the type of your COBOL server program. It is used by the RPC server and the EntireX Adapter at runtime to correctly call the COBOL server and must be a supported interface type of the RPC server used. See Compatibility between COBOL Interface Types and RPC Server.

Additional information may be required depending on the interface type:

For an introduction to interface types, see Supported COBOL Interface Types.

Software AG IDL File

With the Software AG IDL file target options you specify the IDL file and IDL library names used:

COBOL to IDL Mapping

With these target options you specify how COBOL data items are mapped to IDL:

Choose Next and start the extraction. The wizard now analyzes the COBOL program. During this process the following situations are possible:

graphics/copybookFlowchart.png

Step 4.1a: Copybook Cannot be Found - Local Extraction

This dialog enables you to browse directories where missing copybooks might be found. If there are any specific copybook file extensions, you can define them here.

graphics/createNew_settings_noCopybook-local.png

The copybook that cannot be found is given in the window, here its name is "ACPYBK21". In the extractor Preferences, the copybook directory that contains the copybook or the copybook file extension is not defined.

Continue with one of the following actions:

Start of instruction setTo ignore this copybook only

  1. Choose Ignore and go back to Step 4: Define the Extraction Settings and Start Extraction.

  2. Choose Next to start extraction again.

Start of instruction setTo ignore this and all further copybooks

  1. Choose Ignore All and go back to Step 4: Define the Extraction Settings and Start Extraction.

  2. Choose Next to start extraction again.

Start of instruction setTo complete the extractor environment

  1. Choose Workspace or File System to browse for the copybook directory.

  2. Check the copybook file extensions. Both will be saved in the COBOL extractor preferences and reused in further extractions.

  3. Choose OK and go back to Step 4: Define the Extraction Settings and Start Extraction.

  4. Choose Next to start extraction again.

Step 4.1b: Copybook Cannot be Found - z/OS Remote Extraction

This dialog enables you to browse remote locations (partitioned or CA Librarian data sets) where missing copybooks might be found.

graphics/noCopybook_remote.png

The copybook that cannot be found is given in the window; here its name is "CUSTREC". In the extractor preferences, the copybook data set that contains the copybook is not defined.

Continue with one of the following choices:

Start of instruction setTo ignore this copybook only

  1. Choose Ignore and go back to Step 4: Define the Extraction Settings and Start Extraction.

  2. Choose Next to start extraction again.

Start of instruction setTo ignore this and all further copybooks

  1. Choose Ignore All and go back to Step 4: Define the Extraction Settings and Start Extraction.

  2. Choose Next to start extraction again.

Start of instruction setTo complete the extractor environment

  1. Choose Find to browse for the copybook data set. It will be saved in the COBOL extractor preferences and reused in further extractions.

  2. Choose OK and go back to Step 4: Define the Extraction Settings and Start Extraction.

  3. Choose Next to start extraction again.

Step 4.1c: Copybook Cannot be Found - BS2000/OSD Remote Extraction

This dialog enables you to browse remote locations (LMS libraries) where missing copybooks might be found.

graphics/createNew_settings_noCopybook-remote-bs2.png

The copybook that cannot be found is given in the window; here its name is "XTAB". In the extractor preferences, the copybook LMS library that contains the copybook is not defined.

Continue with one of the following choices:

Start of instruction setTo ignore this copybook only

  1. Choose Ignore and go back to Step 4: Define the Extraction Settings and Start Extraction.

  2. Choose Next to start extraction again.

Start of instruction setTo ignore this and all further copybooks

  1. Choose Ignore All and go back to Step 4: Define the Extraction Settings and Start Extraction.

  2. Choose Next to start extraction again.

Start of instruction setTo complete the extractor environment

  1. Choose Find to browse for the copybook LMS library. It will be saved in the COBOL extractor preferences and reused in further extractions.

  2. Choose OK and go back to Step 4: Define the Extraction Settings and Start Extraction.

  3. Choose Next to start extraction again.

Step 4.2: Copybook Status Summary (Optional)

This summary page lists all COBOL copybooks which were not available during extraction.

graphics/createNew_settings_copybookStatusSummary.png

Step 4.3: Enter COBOL Program ID (Optional)

This page is shown whenever the program ID of the COBOL source is missing. Entering a COBOL program name is compulsory.

graphics/createNew_settings_noCobId.png

No COBOL program ID can be located if you extract, for example, from a copybook that contains COBOL data items only. The COBOL program ID

Start of instruction setTo complete the extraction

  1. Enter the COBOL program ID.

  2. Choose OK to continue with Step 5: Select the COBOL Interface and Map to IDL Interface.

Top of page

Step 5: Select the COBOL Interface and Map to IDL Interface

In general, mapping the COBOL data items to IDL with the COBOL Mapping Editor is a two-step process:

  1. First select the COBOL data items describing the COBOL interface from the COBOL source view. In this example the COBOL interface is preselected as defined in the PROCEDURE DIVISION USING clause.

  2. Then map the COBOL interface to the IDL interface.

See the guidelines on IDL extraction below for further information.

graphics/createNew_selectParms.png

The following table provides guidelines on IDL extraction per interface type. For the CICS interface types DFHCOMMAREA and DFHCOMMAREA Large Buffer, the guidelines distinguish further between COBOL server programs overlaying the input data structure with a different output data structure and COBOL server programs using same structures on input and output. You already selected this in the checkbox Input Message same as Output Message in Step 4: Define the Extraction Settings and Start Extraction.

Environment Interface Type CICS Message on Input and Output Guidelines
CICS DFHCOMMAREA (3) same (1,4) graphics/toc_closed.png More info
different (2,5) graphics/toc_closed.png More info
Large Buffer same (1) graphics/toc_closed.png More info
different (2) graphics/toc_closed.png More info
Channel Container graphics/toc_closed.png More info
Batch Standard Linkage graphics/toc_closed.png More info
IMS BMP with Standard Linkage graphics/toc_closed.png More info
MPP Message Interface (IMS Connect) graphics/toc_closed.png More info
Micro Focus Standard Linkage graphics/toc_closed.png More info

Notes:

  1. Checkbox Input Message same as Output Message in Step 4: Define the Extraction Settings and Start Extraction is checked. The COBOL data structure of the CICS input message is the same as the structure of the CICS output message.
  2. Checkbox Input Message same as Output Message in Step 4: Define the Extraction Settings and Start Extraction is cleared. The COBOL data structure of the CICS input message is different to the structure of the CICS output message (that is, the output overlays the input).
  3. Your DFHCOMMAREA COBOL server must be DPL-enabled to be directly supported by EntireX. The distributed program (DPL) link function enables a CICS client program to call another CICS program (the server program) in a remote CICS region. Technically, a COBOL server is DPL-enabled if If your program is not DPL-enabled, see What to do with other Interface Types? in Introduction to the IDL Extractor for COBOL
  4. See the following COBOL server examples for CICS input message the same as CICS output message:
  5. See the following COBOL server examples for CICS input message different to CICS output message:

The outcome of the Mapping Editor is the IDL file and a server mapping file (optional). There are server-side mapping files (EntireX Workbench files with extension .svm) and client-side mapping files (extension .cvm). See Server Mapping Files in the EntireX Workbench and How to Set the Type of Server Mapping Files.

Top of page

Step 6: Finishing the Mapping Editor

When you choose Save in the Mapping Editor, the IDL file is generated. If required, a server mapping file is generated,too. See When is a Server Mapping File Required? in the EntireX Workbench documentation The server mapping file is either of type client-side (extension .cvm) or server-side (extension .svm). See How to Set the Type of Server Mapping Files. Both files are written with the "File Name" entered for the IDL file in Step 4: Define the Extraction Settings and Start Extraction.

graphics/createNew_finishMappingEditor.png

Start of instruction setTo save the generated files into the workspace, quit the Mapping Editor and deploy the server-side mapping file

  1. Select Save IDL and server mapping files.

  2. Check the option Synchronize with server-side mapping container now and choose OK. This calls the Deployment Wizard. See Server Mapping Deployment Wizard in the EntireX Workbench documentation.

  3. Continue with Step 7: Validate the Extraction and Test the IDL File.

Start of instruction setTo save the generated files into the workspace and quit the Mapping Editor without deploying the server-side mapping file

  1. Select Save IDL and server mapping files.

  2. Clear the option Synchronize with server-side mapping container now and choose OK.

  3. Continue with Step 7: Validate the Extraction and Test the IDL File.

Start of instruction setTo save the generated files into the workspace, quit the Mapping Editor and start the IDL Extractor for COBOL again

Warning:
Do not edit the IDL file manually or with the IDL Editor, except for changing parameter names. Otherwise, consistency between the IDL file and the server mapping file will be lost, resulting in unexpected behavior. For this purpose use the COBOL Mapping Editor instead and choose Scenario III: Modify Existing IDL and Server Mapping Files.
Warning:
A server mapping file extracted this way must not be re-created by the COBOL Wrapper. Server mapping specifications of such a file would not be powerful enough to adequately describe your COBOL server program extracted here.

Top of page

Step 7: Validate the Extraction and Test the IDL File

The IDL file is used to build RPC clients using an EntireX Workbench wrapper of your choice. See EntireX Wrappers in the EntireX Workbench documentation.

If you are using client-side mapping files:

For a quick validation of your extraction, you can

Top of page