Creating a program from computation (COBOL)

To create a program from computation means to create a new program with all the lines that could impact the value of a data item at the selected position in the code. The original program is not modified.

To do a computation-based slicing:
  1. In the COBOL editor, place the cursor on the data item.
  2. Right-click in the editor and then click COBOL Refactoring > Create Program from Computation.
  3. In the Create a Program from Computation pane, type a name for the new file.
  4. Click Create.
  5. The new program is created, added to your project and open in the editor.

If you want to revert the code slicing changes and remove the new file from your project, click Edit > Undo.