Using multiple local preprocessors
You can process your source files with multiple local, site-developed preprocessors.
Before you begin
About this task
- Local syntax check of a local file.Limitations:
- Local syntax check is deprecated. This action is available only on Windows.
- Local syntax checking does not support shift-out-shift-in (SOSI) sources. The importer that is used to do the local syntax check supports only UTF-8 encoding. Translating CP-930 and other SOSI sources into UTF-8 alters the column locations for some characters, and this alteration results in unexpected errors.
- Build of a local project.
- Show Dependencies on a local project or local file.Note: Only files that were not created by a preprocess step can be considered dependencies. If a preprocess step creates several include files that are eventually passed to another preprocessor or the compiler, those generated include files are not considered dependencies.
- Local syntax check of a remote file.
You can specify up to 10 local preprocessors for a single build operation.
Procedure
To define and enable multiple local preprocessors:
Example
–GET statements in the source. The output of that preprocessor is an XML file named
mysource_PP1.xml and a DECK file named mysource_PP1.dek
that is passed on to the next step.The output file mysource_PP1.dek contains
–INC statements that also must be processed. The programmer chooses to use the
–INC preprocessor for the second preprocessor step. The output of that step is an
XML file named mysource_PP2.xml and a DECK file named
mysource_PP2.dek that is passed on to the compiler.
The compiler receives
mysource_PP2.dek from the second preprocessor step. By now, the
–GET statements and the –INC statements are removed from the
source, and the DECK file that is being processed contains only valid COBOL statements.
- Remove -GETThe Remove -GET preprocessor has the following preprocessor options specified:
- Preprocessor Description: Remove -GET
- Preprocessor Name (fully qualified): C:\mypreprocs\preproc1.exe
- Preprocessor Output File Name: ${resource_fn}_PP1.dek
- Support Error Feedback: The checkbox is selected.
- Error Feedback XML file Name: ${resource_fn}_PP1.xml
- Remove -INCThe Remove -INC preprocessor has the following preprocessor options specified:
- Preprocessor Description: Remove -INC
- Preprocessor Name (fully qualified): “${bundle:com.ibm.systemz.preprocessor.include}/bin/operatingSystem/PPINCL01
- Preprocessor Output File Name: ${resource_fn}_PP2.dek
- Support Error Feedback: The checkbox is selected.
- Error Feedback XML file Name: ${resource_fn}_PP2.xml