Rational Developer for System z, Version 7.6

Real-time syntax checking of PL/I files

The System z® LPEX Editor provides real-time syntax checking of PL/I files in the form of editor annotations.

The System z LPEX Editor flags syntax errors in PL/I files and provides annotations describing the errors. The following sections provide examples of the kinds of errors the System z LPEX Editor can flag in PL/I files.

You can enable or disable editor annotations using the PL/I Annotations preference page.

Syntax errors

In the following example from the HelloApp.pli sample program, the editor has flagged a mistake in the Do forever; statement:

Flag showing errors in PL/I syntax

You can place your cursor over the flag to display an annotation that explains the error:

Annotation explaining errors in PL/I syntax.

Missing include files

The editor detects missing include files and displays a warning when an include file is missing. In the following example from the Global Auto Mart sample application, the GAM0ICT include file is missing:

Annotation for missing include file.

Undeclared variables

If a program uses a variable that is undeclared, the editor displays a warning. In the following example from the HelloApp.pli sample file, the program declares a variable named theAnswer2, but uses a variable named theAnswer.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)