Adding the same preprocessor with different options
You can call the same preprocessor more than once for a single build operation by adding it to a property group multiple times with different options.
Before you begin
About this task
GOTO statements
and another that looks for DISPLAY statements. Each
definition points to the same preprocessor, but runs it with different
arguments.Procedure
To add multiple entries for the same preprocessor with different options:
- Open a property group in the property group editor.
- Open the Local Preprocessors page of Local COBOL Settings or Local PL/I Settings.
- In the Preprocessors section, click Add.
The fields in the Preprocessor Options section are cleared.
- In the Preprocessor Name (fully qualified) field, specify the preprocessor name or to choose to the preprocessor file name, click Browse.
- In the Preprocessor Description field,
specify a unique description for this instance of the preprocessor.
The description is used as the label in the list of preprocessors in the Preprocessors section. The descriptions that you write for each instance must uniquely identify which instance is being run. To continue the example that is given above, you can type Locate GOTO for the first instance and Locate DISPLAY for the second.
- Complete the remaining fields with the options that you
want for the first execution of the preprocessor. For a detailed description of the fields, see the context-sensitive help.
- Click Add again to clear the fields and add another entry to the Preprocessors list.
- In the Preprocessor Name (fully qualified) field, specify the same preprocessor name.
- In the Preprocessor Description field, specify a unique description for the second instance of the preprocessor.
- Complete the remaining fields with the options that you want for the second execution of the preprocessor.
- Click Ctrl+S to save your changes or Add to add another preprocessor to the list.