Top
NetCOBOL V11.0 NetCOBOL Studio User's Guide
FUJITSU Software

6.2.1 Setting and changing initial values of precompiler link information

The initial values used when a precompiler command is invoked can be set and changed. The initial values for setting the precompiler link information are shared by the COBOL projects in a workspace.

To set or change the initial values of the precompiler link information.

  1. Select "Window" > "Preferences" from the menu bar. The "Preferences" dialog box appears.

  2. Select "COBOL" > "Precompiler" in the left pane of the "Preferences" dialog box, and set or change initial values on the displayed "Precompiler" page.

Item

Description

Use Precompiler

Select this item to use a precompiler for a COBOL project in the current workspace.

Precompiler command

Specifies the name of a command that starts the precompiler.

Precompiler parameters

Specifies precompiler command parameters.

Precompiler source extension

Specifies the extension of an input source file for the precompiler. The following extensions cannot be specified:

  • cobol

  • cob

  • cbl

  • lcai

Precompiler output source extension

Selects the file extension for the output source file from the precompiler.

Use original source line numbers for error messages.

If this item is checked, COBOL compiler error messages are displayed using the line number in the original source, rather than the line number of the preprocessed source. (The INSDBINF command is invoked.) The default setting is unchecked.

INSDBINF parameters

This item sets parameters of the INSDBINF command, which develops line information for the precompiler input source in COBOL source files generated by precompilation. Note that input and output source file names cannot be specified because they are determined from precompiler input source file names.

Note

  • When Symfoware Server is used for the pre-compiler, the sqlpcob command must be specified for the pre-compiler command. If the sqlcobol command is specified, a compilation error may be generated.

  • Setting the pre-compiler is also required for remote builds. For details, see "9.4.4.2 Precompiler tab "

Method for specifying file names for precompiler command parameters

If file names must be specified for precompiler command parameters, use the macros listed below. File names are automatically generated when the precompiler is invoked.

Macro name

Description of macro

%INFILE%

Name of the source file that is input to the precompiler

%INFILE_BASE%

Name of the source file that is input to the precompiler without an extension.

%OUTFILE%

Name of the source file that is output from the precompiler.

Note

Use the following macro for the file specified for the command parameter in the precompiler.

  • Input file of the precompiler: %INFILE%

  • Output file of the precompiler: %OUTFILE%