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:
Click OS 2200 > Configure COBOL Procedures.
The Configure COBOL Procedures dialog box appears.
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.
Select one of the following share options, and then provide a share name in the corresponding text box:
Share Name: This option enables you to type the share name in the corresponding text box. You can specify the OS 2200 program files that contain your COPY procedures separated by commas in the Workfile Name text box. For example, MY*PROCS., SYS$LIB$*PROC$. If you do not enter a share name, "os2200" is taken as default.
Workfile Share: This option enables you to type the workfile share names separated by commas in the corresponding text box. The Workfile Name text box is grayed out when you select this option.
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.
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.
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:
Place the cursor on the COPY statement that you want to review the source code.
Do one of the following:
Click F3.
By default, it displays the first matching COPY procedure in the defined Copy-proc path for this connection.
Right-click the required COPY statement and select Open Declaration.
By default, it displays the first matching COPY procedure in the defined Copy-proc path for this connection.
Hold down the Ctrl key, move the mouse over the COPY statement in the editor.
By default, it displays the first matching COPY procedure in the defined Copy-proc path for this connection.
Hover the mouse over the COPY statement and select the required hyperlink for the procedure library file from the available options.
Note: The hyperlink for the procedure library file path is displayed in
OS 2200 format when the connection is configured using Share Name.
POSIX format when the connection is configured using Workfile Share.
The selected copy-proc is opened in the editor.