Filtering editor contents

Use the Filter view menu item to filter the contents of the editor by function, instruction type, comment lines, or flow-of-control statements.

About this task

You can filter a source file on the following content:
For COBOL source files For PL/I source files For JCL files
  • Divisions: Shows only program division statements
  • Code: Shows only code statements (and no comments or comments task tags)
  • Comments: Shows only comments
  • Outline: Shows a functional outline of the program, for example, divisions, program ID, copy statements, and paragraph headings
  • Embedded SQL/CICS/DLI: Shows only EXEC SQL, EXEC CICS®, and EXEC DLI statements
  • Comment task tags: Shows only task tags defined in the Editor > Task tags Preferences page
  • Copy statements: Shows only COPY and SQL INCLUDE statements
  • Call statements: Shows only CALL statements
  • Procedures: Shows only procedure statements
  • Logic outline: Shows a functional outline of the program, for example, procedures, program ID, include statements, and paragraph headings
  • Preprocessor statements: Shows only preprocessor statements
  • Includes: Shows only include files and SQL includes
  • SQL/CICS/DLI: Shows only EXEC SQL, EXEC CICS, and EXEC DLI statements
  • Comment task tags: Shows only task tags defined in the Editor > Task tags Preferences page
  • JOB statements: Shows only JOB statements
  • EXEC statements: Shows only EXEC statements
  • DD statements: Shows only DD statements
  • PROC statements: Shows only PROC statements
  • Errors: Shows only JCL statements flagged with errors
  • Comment task tags: Shows only task tags defined in the Editor > Task tags Preferences page
Limitations:
  • You cannot filter source files that contain syntax errors or source files for which preprocessor statements have been identified.
  • In the COBOL Editor and PLI Editor, Filter view is not enabled for include files and copybooks.
  • Filters for the COBOL and PLI Editor will always display the first line of the file and possibly some characters of the last line of the file.

Procedure

  1. Open a COBOL, PL/I, or JCL file in the editor.
    Note: The Filter view menu is supported for JCL files open in the z Systems® LPEX Editor, but not for JCL files open in the JCL Editor.
  2. Right-click and select Filter view.
    The menu opens with the list of program contents that you can filter on. A filtered source file always shows the first and last lines.
  3. To remove a filter, right-click and select Show All.