The editor checks syntax in real time and provides annotations
that describe encountered errors. If an error is found, a warning
icon (
) is displayed. To see the annotation
that describes the error, hover your mouse over the icon. The maximum
number of errors that is reported is based on the value that is specified
in the Maximum number of problems reported per compilation
unit editor preference. The maximum includes the file
content and referenced include members
You can customize the appearance of the annotation. For example,
instead of a yellow squiggly line under a warning you can display
syntax errors with red highlighting or a green dashed box. To customize
the annotation appearance, open the Annotation preference
page, and select Warnings
in the list.
To turn off real-time syntax checking on the Real-Time Syntax Checking preference page, select Disable syntax parser. To enable or disable SQL annotations, use the EXEC SQL statements preference page.
In the following example from the HelloApp.pli sample, the program shows a syntax error for the Do forever; statement.


In the following example from the Global Auto Mart sample application, the GAM0ICT include file is missing.

In the following example from the HelloApp.pli sample file, the program declares a variable named theAnswer2, but uses a variable named theAnswer.

You can specify the NAMES, OR, and NOT compiler options in PROCESS statements and in property groups that are associated with PL/I programs. Compiler options that are specified in PROCESS statements override compiler options that are specified in property groups. You can also specify default NAMES, OR, and NOT compiler options when the PL/I compiler is installed on a remote system, but the real-time syntax checker does not recognize these default options. Other compiler options are not supported.