MCP COBOL Record Selection

The Record Selection page shows the list of available data descriptions including redefines found in the COBOL code. This page enables you to import the COBOL data descriptions and update the previously imported data descriptions.

The following table contains descriptions of the display fields.

Field

Description

COBOL Data Descriptions

The name of the data description that was found by the parser. The data descriptions also include the re-defines and the already imported records.

FD Name

The name of the file description.

Server Usage

Lists the following values:

  • Input: If the Auto Discovery of COMS Send and Receive Records check box was selected on the previous screen and the data description was referenced in a RECEIVE statement, the ClearPath ePortal server message is referred to as an Input record.

  • Output: If the Auto Discovery of COMS Send and Receive Records check box was selected on the previous screen and the data description was referenced in a SEND statement, the ClearPath ePortal server message is referred to as an Output record.

  • Input/Output: If the Auto Discovery of COMS Send and Receive Records check box was selected on the previous screen and the data description was referenced in a Transaction Server SEND statement and a Transaction Server RECEIVE statement, the ClearPath ePortal server message is referred to as an input/output record.

Note: The blank field indicates that the MCP COBOL Data Source Wizard could not determine the usage or the value is still unassigned.

Imported

If checked, the record is already imported.

Server Message Name

The C# name of the server message generated for the record.

EGI

If checked, the record is part of the data set that is terminated with an EGI.

Importing COBOL Data Description

Perform the following steps to import COBOL data description:

  1. (Optional) Click View Source to view the source file.

  2. Select one or more data descriptions that is required to be imported.

  3. (Optional) Select a record usage from the Server Usage list.

  4. Click Import.

The Set Discriminator page is displayed to modify the Output, Input/Output, and unspecified records. The page does not appear for Input records because they do not require further processing.

Note: In the Record Selection page, you cannot modify the Server Usage column for an existing record. However, you can modify in the Set Discriminator page. To change the Server Usage of an imported record, select the record and click Update. The Set Discriminator page is displayed that allows you to modify the record.

Updating Existing COBOL Data Description

You can reimport or update the existing records only if the Imported field is checked for the associated records.

Perform the following steps to update the existing COBOL data description:

  1. Select one or more data descriptions that you want to update.

  2. Click Update.

    The Set Discriminator page appears.

  3. Select a record usage from the Server Message Usage list, if required

  4. Do any of the following:

    • Clear the Discriminator field(s) not required for this Data Description check box if you want to define a unique identifier. Refer to MCP COBOL Set Discriminator for more details on how to define a unique identifier.

    • If you want to skip defining a unique identifier, select the Discriminator field(s) not required for this Data Description check box.

  5. Click OK to complete the update operation.