does the lpex online syntax check support pli macros?
We go always the error "misplaced construct(s)" in the editor, when we use statements like
Do we need to do some configuration in the property groups to support pli macros?
Pinned topic Does LPEX online syntax check support PLI macros
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-02-15T13:54:35Z at 2013-02-15T13:54:35Z by gb12345
walexand 060001RCCT145 Posts
Re: Does LPEX online syntax check support PLI macros2013-01-07T15:20:11ZThis is the accepted answer. This is the accepted answer.Hello,
Preprocessor support can be configured on the Editor Configuration page in your Property Group.
Here is a helpful topic in the RDz documentation:
There is also short demo of this functionality (the second half shows a PL/I example) on the IBM Education Assistant, located here:
Re: Does LPEX online syntax check support PLI macros2013-01-08T10:18:49ZThis is the accepted answer. This is the accepted answer.Hello,
the PLI-Compiler supports PLI-Macros with the compiler option PP(MACROS), so there is no need of a preprocessor.
walexand 060001RCCT145 Posts
Re: Does LPEX online syntax check support PLI macros2013-01-16T12:10:10ZThis is the accepted answer. This is the accepted answer.
- gb12345 270002SHA0
in the documentation I referenced is the following Note:
In the PL/I Editor, after local preprocessors are invoked, the PL/I macro preprocessor is invoked if either the MACRO or PP compiler option is specified. These options can be specified in the property group or PROCESS statement in the program.
Even if you have no other local preprocessors configured, can you please try including MACRO in the compiler options field of your property group and using the editor menu action Identify Using Configured Preprocessor?
SystemAdmin 110000D4XK1086 Posts
Re: Does LPEX online syntax check support PLI macros2013-01-16T17:53:36ZThis is the accepted answer. This is the accepted answer.There are several methods of syntax checking your program. The remote syntax check and local syntax check actions both support proper identification of MACRO syntax errors. These actions must be run manually to update the problem annotations.
The editors also contain a real-time syntax checking routine that when enabled (it is enabled by default) will identify syntax errors in your program. This real-time syntax checking routine does not support proper identification of MACRO syntax errors, but it does support the identification of errors within the post-processed PL/I code by using the preprocessor integration feature mentioned in Bill Alexander's comment.
Note that without using the preprocesor integration feature, the real-time syntax checking routine for PL/I may report problems found due to the presence of MACRO statements it does not understand. This may prevent the parser from successfully initializing and may prevent parse-dependent features such as Open Declaration and Mark Occurrences from being available. The preprocessor integration feature (for example the "Preprocessor Statements > Identify" action) can be invoked to resolve this issue.
Re: Does LPEX online syntax check support PLI macros2013-01-21T10:05:10ZThis is the accepted answer. This is the accepted answer.Hi Jeremy,
i have tested the preprocessor integration feature (for example the "Preprocessor Statements > Identify" action) and it works (errors in editor disappeared), if i have the program files locally on my PC (Local PLI Project), but it does not work, when the files are on the mainframe and I use a z/OS-Project.
Any help would be appreciated.
Re: Does LPEX online syntax check support PLI macros2013-01-21T10:27:41ZThis is the accepted answer. This is the accepted answer.Hi Jeremy,
do I have to setup a remote preprocessor configuration in case of program files on the mainframe?
Is there any documentation available?
Re: Does LPEX online syntax check support PLI macros2013-02-15T13:54:35ZThis is the accepted answer. This is the accepted answer.I have done another test:
1. I copied the files to a local PLI -Project
2. I saw the same errors in the editor.
3. After doing a "Identify using configured preprocessor" the errors in the editor disappeared.
4. This works only for local PLI-project. This does not work for Enterprise-projects with source-files on the mainframe.
RavikanthChavali 2700036D4W16 Posts