Managing syntax errors

About this task

When a syntax error is detected by the HLASM parser, it is either displayed as an annotation, as an embedded message, or both. Both are displayed in the following example.

Syntax errors can be managed as follows:

Procedure

  • The right vertical ruler displays an overview of the entire source open in the editor. Each syntax error is represented by a red rectangle. Use the mouse to hover over a red rectangle to see the syntax error, or click on it to navigate to the syntax error.
  • The left vertical ruler displays an icon for any syntax error visible in the editor window. Use the mouse to hover over the icon and see the syntax error or click on the error to see possible quick fixes for the error:
  • Click on any quick fix to insert the suggested fix into the source file.

What to do next

Tip: You can configure the annotations that editors display for task tags in the Annotations page of the Preferences window at General > Editor > Text Editors > Annotations. You can configure the tokenization that the HLASM parser performs for task tags on the Parser Styles page at LPEX Editor > Parsers > Parser Styles