Setting options for real-time syntax checking

You can set preferences that control whether the editor checks syntax while you edit a file. Warning annotations assist with making corrections to identified errors. Disabling the syntax parser causes any tooling that is dependent on it to be disabled. The maximum number of problems that are reported is 200.

Procedure

  1. Click Window > Preferences.
  2. Choose one of these preference categories:
    Option Description
    COBOL > Real-Time-Syntax Checking Sets preferences for the COBOL Editor and the System z® LPEX Editor open on COBOL files
    JCL > Real-Time-Syntax Checking Sets preferences for the JCL Editor
    PL/I > Real-Time-Syntax Checking Sets preferences for the PL/I Editor and the System z LPEX Editor open on PL/I files
  3. To enable real-time syntax warnings to identify programming errors while you edit, select the Enable real-time syntax warnings check box.
  4. To enable real-time syntax warnings in copybooks or include files, select one of these check boxes:
    • For COBOL: Enable real-time syntax warnings for copybooks
    • For PL/I: Enable real-time syntax warnings for include files
    If the Enable real-time syntax warnings check box is cleared, this option is disabled. When you select this option, copybooks and include files are parsed for basic syntax legality when they are opened in the System z LPEX Editor, COBOL Editor, or PL/I Editor. Illegal syntax is flagged with a warning. References to data items are not checked for validity, because they might refer to items defined in other source files.
  5. If real-time syntax warnings are enabled, you can specify the maximum number of errors that are reported during an edit session. Specify an integer 1 - 200 for the Maximum number of problems reported per compilation field.
  6. COBOL files: To receive notification of deprecated COBOL 5.1 syntax, enable Validate against compiler version and specify the level of notification on the Obsolete Syntax field.

  7. COBOL files: To receive notification when an EXEC statement or END-EXEC statement begins to the left of area B, set EXEC must begin in Area B or END-EXEC must begin in Area B to Warning.

  8. To disable the syntax parser, click the Disable syntax parser check box.
  9. Click Apply to save your changes.

Feedback