Configuring the COBOL Copy-Procs

This feature enables you to extract the list of COBOL copy-procs for the workfiles on a particular OS 2200 system. Once configured, the tool tip for the copy-proc used in a COBOL program displays the absolute path for that proc. Clicking on this path opens the copy-proc in a separate editor pane. To configure the COBOL copy-procs search path, perform the following steps:

  1. Click OS 2200 > Configure COBOL Procedures.

The Configure COBOL Procedures dialog box appears.

  1. Select the name of an OS 2200 connection from the OS 2200 Connection Name list.

The associated projects for the selected OS 2200 connection are displayed. You cannot edit this field.

  1. Select one of the following share options, and then provide a share name in the corresponding text box:

Note: If an OS 2200 connection is already configured with a share name, the existing share names are displayed in the Share Name text box and are available for updating.

  1. Click OK to initiate the process of mapping the COPY procedures to an OS 2200 connection. A progress bar is displayed to indicate the status of the work files being configured. All COBOL COPY Procedures discovered on the files in the Work File path are mapped to the OS 2200 connection and will be available for use from the COBOL editor.

    A message confirming that the COBOL COPY procedures have been successfully configured appears.

Opening the Copy-Procs from the Main Program

Use the copy-procs feature to open a COBOL COPY procedure in the editor without adding it to the opened project.

Note: You can use the copy-procs feature only if the selected element is associated with an OS 2200 project.

To trigger this feature while editing code in the COBOL editor, perform the following steps:

  1. Place the cursor on the COPY statement that you want to review the source code.

  2. Do one of the following:

          By default, it displays the first matching COPY procedure in the defined Copy-proc path for this connection.

          By default, it displays the first matching COPY procedure in the defined Copy-proc path for this connection.

          By default, it displays the first matching COPY procedure in the defined Copy-proc path for this connection.

Note: The hyperlink for the procedure library file path is displayed in

          The selected copy-proc is opened in the editor.