Adding data sets for qualified copybook references

About this task

Note: A statement in this subtopic that refers to a COBOL copybook applies also to PL/I include files.

Procedure

To specify data sets to be searched for qualified copybook references, follow these steps:

  1. In the Property Group editor, click the COBOL or PL/I tab.
  2. In the list of language settings, which is on the left side, click Procedures and Steps.
  3. In the Procedures and Steps pane, which is on the right side, click the compilation step. In the Additional JCL field, enter data definition (DD) statements.
    For example, if the qualified COPY statement is COPY MYCPYBK IN CPYLIB, you might add the following data definitions:
    //******* ADDITIONAL JCL FOR COMPILATION HERE ******
    //CPYLIB   DD DSN=USER.COBOL.COPYLIB1,DISP=SHR
    //         DD DSN=USER.COBOL.COPYLIB2,DISP=SHR 
  4. Save your work. Return to Creating a property group file and continue with Step 4.

Results

At run time, the code review application scans the contents of the Additional JCL property for a DD name that matches the qualifier library. It then scans the data sets defined for the DD name. If the application does not find the copybook name, it does not process the copybook.