Real-time syntax checking of PL/I files
Real-time syntax checking automatically validates the syntax of PL/I files and embedded CICS® and SQL statements.
- PL/I Editor
- z Systems® LPEX Editor
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.
- Missing include files
- Undeclared variables
- Real-time syntax checking is not a substitute for compiling. Real-time syntax checking can catch most high-level syntax errors, but for full error checking, it is best to compile your source code.
- For real-time syntax checking to handle COPY statements correctly, the statement must end with a period (.).
Examples




Limitations
- Invalid PL/I syntax in macro preprocessor input when the macro preprocessor output is legal PL/I
- Labels on preprocessor directives
- Entry constants
- Type functions
- Factoring of attributes when you declare structures
- An isub option with defined attribute
- A tstack attribute of the attach statement
- Implicit variable declarations
- Condition prefixes for do statements
- Label prefixes for declare, default, when, otherwise, and on statements
- Scaling factors for float or fixed
- Duplicate attributes for declaration statements
- Syntax errors in macro preprocessor output
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.