To create a program from condition means to create a new program with all statements treating the value of a selected data
item as if it were hard-coded, removing code paths that were not executed.
Note: The original program will not be modified.
- In the COBOL editor, place the cursor on the data item.
- Right-click in the editor and then click
- In the
Create a Program from Condition field, type a name for the new file.
- Type a condition value and select
- 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