Extracting Computation-Based COBOL Components

Follow the instructions below to extract computation-based COBOL components.

  1. Select the program you want to slice in the HyperView Objects pane and click the * button. A dialog opens where you can enter the name of the new component in the text field. Click OK. Component Maker adds the new component to the list of components. Double-click the component to edit its properties.
  2. Select the variable or statement you want to slice on in the Source pane. In the Point field, click the link for the current selection and choose Set in the pop-up menu.
    Note: If you slice on a variable, you must select Variable in the Component Type Specific options for computation-based extraction.

    To unset a variable or statement, click it and choose Unset in the pop-up menu. To navigate quickly to a variable or statement in the source, click it and choose Locate in the pop-up menu.

  3. In the Entry Point to use field, click the link for the current selection and choose the entry point you want to use in the pop-up menu. To unset an entry point, click it and choose Unset in the pop-up menu.
  4. If you plan to specify Use Blocking from Component Definitions in the Interface options, select the list of statements to block in Code Search, then click the link for the current selection in the Block statements field and choose Set in the drop-down menu.
    Note: Choose Show to display the current list in Code Search. Choose (none) to unset the list. For Code Search usage, see Analyzing Programs in the product documentation set.
  5. In the Description field, click the here link to open a text editor where you can enter a description of the component. The description appears in the box below the Description field in the Properties tab and in the Description property for the logical component repository object.
  6. Click the * button on the tool bar to start extracting the logical component. You are prompted to confirm that you want to continue. Click OK.
  7. The Extraction Options dialog opens. Set options for the extraction and click Finish.
  8. Component Maker performs the extraction. You are notified that the extraction is complete. If the extraction completed without errors or warnings, click OK to continue. If the extraction completed with errors or warnings, click Yes in the notification dialog to view the errors or warnings in the Activity Log. Otherwise, click No.