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

9.4.4 Option Setting dialog box

9.4.4.1 TARGET tab

TARGET names can be changed by clicking the Target tab in the Option Setting dialog box.

Item

Description

Target Name

Specifies a TARGET name.

Initialize

Changes the values to the ones specified on the Target page of project properties.

Note

The types of executable files and dynamic link libraries (shared libraries) become the values selected for Target type on the Target page of project properties. To change TARGET types, change the values selected for Target type on the Target page of project properties.

9.4.4.2 Precompiler tab

Precompiler settings can be changed by clicking the Precompiler tab in the Option Setting dialog box.

Item

Description

Use Precompiler

Select this item to create precompiler link information in the makefile for the COBOL project.

When using the precomplier, first add the precomplier build tool and set precomplier link information for the project properties.

If the precomplier build tool is not suitable for the project, makefile could not be created correctly.

If not selected, precompiler link information is not created in the makefile even though the information is set.

For details about the precomplier setting method, refer to "6.2.3 Creating a COBOL program by using the precompiler".

Precompiler command

Specifies the name of the command that starts the precompiler.

Precompiler parameters

Specifies the precompiler command parameters.

Precompiler source extension

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

  • cobol

  • cob

  • cbl

  • lace

Precompiler output

source extension

Specifies the extension of an output source file for 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 the 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.

Initialize

Changes the values to those specified in the precompiler link information on the preferences Precompiler page.

*: For the INSDBINF command, refer to "6.2.2 INSDBINF command".


For more information about precompiler link information, see "6.2.1 Setting and changing initial values of precompiler link information

Note

".cobol" cannot be specified as the extension of the precompiler output source if the server side NetCOBOL is listed below.

  • Solaris 32bit NetCOBOL or Linux(Itanium) 64bit NetCOBOL

    V9.1 or before

9.4.4.3 Compiler Options tab

Compile options can be changed by clicking the Compiler Options tab in the Option setting dialog box.

Item

Description

Compiler Options

Displays the compile options used in the makefile at COBOL source compile time.

Add

Adds the compile options. To add compile options, select the compile options to add in "Compiler options" in the Add Compiler Options dialog box, and click the "Add" button.

Change

Changes the compile options selected in "Compiler options".

Remove

Deletes the compile options selected in "Compiler options".

Initialize

Changes the values to the ones specified on the "Compiler Options" tab on the project properties Build page.

Specify other compiler options

Specifies the compile options that cannot be added from the Compiler options dialog box.

Compile options that cannot be used during remote development

When the server side is Solaris, the following compiler option cannot be used.

Compile options specific to remote development

Some compile options specific to remote development are accessed in the Option setting dialog box Compiler Options tab.

The following table lists the compile options that are specific to remote development and specifies whether or not these compile options can be used with particular target operating systems.

Compile options

Solaris

Linux

Windows

Itanium

64

Itanium

64

CODECHK

Y

Y

N

N

N

KANA

Y

Y

N

N

N

LALIGN

Y

Y

Y

N

N

Y: Can be used.

N: Cannot be used.

Details of the compile options specific to remote development are as follows:

CODECHK compile option

This option specifies whether to perform a compile-time check of the national language code system at execution time (CODECHK) or not (NOCODECHK). When creating a program that does not depend on the national language code system (program common to ASCII, EUC, and Unicode), specify NOCODECHK.

Item

Description

National language code system check at execution time

Specifies whether to perform a compile-time check of the national language code system at execution time. The default is CODECHK.

CODECHK

Performs a compile-time check of the national language code system at execution time.

NOCODECHK

Does not perform a compile-time check of the national language code system at execution time.

KANA compile option

This option specifies the code sets for kana characters in non-numeric literals, alphabetic and alphanumeric data items.

Item

Description

KANA character code processing

Specifies how to process the kana character code set. The default is KANA(EUC).

KANA(EUC)

Two-byte codes (EUC) are used for kana character codes.

KANA(JIS8)

One-byte codes (JIS) are used for kana character codes.

LALIGN compile option

This option specifies whether to generate objects based on an assumption that data is aligned on an eight-byte boundary (LALIGN) or not (NOLALIGN) when data declared in the linkage section is referenced. The data processing speed is faster when objects are generated based on an assumption that data is aligned on an eight-byte boundary.

Item

Description

Processing of data declared in LINKAGE SECTION

Specifies how to process data declaration in the linkage section. The default is NOLALIGN.

NOLALIGN

Does not assume that data is aligned on an eight-byte boundary.

LALIGN

Assumes that data is aligned on an eight-byte boundary.

Compile option with different specification format during remote development

When the server side is Solaris, this compiler option cannot be used.

When the server side is Linux (itanium), this compiler option has different specification formats for the local personal computer environment.

When the server side is Linux(x64), Windows(itanium) or Windows(x64), this compiler option can be used in the same specification formats as the local personal computer environment.

RCS compile option

The RCS compile option has different specification formats for the local personal computer environment and the Linux (Itanium) environment. The following information pertains to the dialog box that appears when the server operating system is Linux (Itanium). The encoding form of national items in a Unicode environment is UTF-16.

Item

Description

Encoding of national items with Unicode environment

Specifies an endian of UTF-16. The default is LE (little-endian).

BE

Specifies big-endian as the endian of UTF-16.

LE

Specifies little-endian as the endian of UTF-16.


9.4.4.4 Library Name tab

The values specified in the "Library Name" tab of the Build page of project properties can be referenced by selecting the "Library Name" tab in the Option setting dialog box. The values specified on the "Library Name tab are not reflected in the makefile. Specify the library file storage folder in the server-side environment variables with library names specified with IN/OF.

Note

When the server side is Windows (Itanium) or Windows (x64), the library file storage folder is defined in the COB_library-name environment variable.

9.4.4.5 Linker Options1 tab, Linker Options2 tab

Link options are configured on the two tabs in the Option setting dialog box as follows:

Changing the libraries and object files to be linked

The libraries and object files to be linked on the server side can be changed by selecting the Linker Options1 tab in the Option setting dialog box.

Item

Description

Add

Adds libraries or object files to those to be linked with a COBOL program. The Add Linker Option dialog box appears when the Add button is clicked. The added libraries and object files are displayed in "Select library or object". One or more libraries or object files can be added.

Change

Changes the specification of the library or object file selected in "Select library or object". The Modify Linker Option dialog box appears when the Change button is clicked.

Remove

Deletes the libraries and object files selected in "Linker options".

Remove All

Deletes all of the libraries and object files in Linker options.

C Run-time Library Name

Specify the file name of the C runtime library to be linked.
This option is enabled if the server OS is Windows(Itanium) or Windows(x64).
If the C runtime library name is omitted, "LIBCMT.lib" is linked.

COBOL Entry Object

Specify whether only object files created in COBOL are used to create the dynamic link library, or whether object files created in other languages are also used to create it.
This option is enabled if the server OS is Windows(Itanium) or Windows(x64).

Link COBOL program only

The dynamic link library is created using only object files created in COBOL.

Other

Object files created in other languages are also used to create the dynamic link library.

Initialize

Deletes all of the libraries and object files in "Linker options", and resets the settings to the values used when the first makefile was created.

The Add Linker Option dialog box appears when the Add or Change button on the "Linker Options1" tab in the Option setting dialog box is clicked. A library or object file can be added or changed from this dialog box. "Linker options" specifies the name of the library or object file to be added or changed. The absolute path name or relative path name of the library or object file is specified. The file name itself cannot be specified alone. The dialog box for referencing server-side files appears when the Browse button is clicked, and a library or object file can then be selected.

Changing link options specific to the operating system of the server

Link options specific to the operating system of the server can be changed by selecting the Linker Options2 tab in the Option setting dialog box. For details on server-side link options, see the NetCOBOL User's Guide on the server side.

Item

Description

Linkage mode

Specify a linkage mode. The default is Dynamic linkage[-dy]. This option is valid only if the server operating system is Solaris OS, Linux(64) or Linux(Itanium).

Dynamic linkage[-dy]

Creates a COBOL program through dynamic linkage.

Static linkage[-dn]

Creates a COBOL program through static linkage.

Use screen form descriptor

Used to select whether the linked program uses a screen form descriptor. This item defaults to unchecked. This option is valid only if the server operating system is Solaris.

Use screen handling function

Used to select whether the linked program performs screen handling. This item defaults to unchecked. This option is valid only if the server operating system is Solaris.

Use C-ISAM

Used to select whether the linked program uses C-ISAM. This item defaults to unchecked. This option is valid only if the server operating system is Solaris.

Program invoked from C

Used to select whether the linked program is invoked by coding in the C language. This item defaults to unchecked. This option is valid only if the server operating system is Solaris.

Use C functions

Used to select whether the TARGET type is a dynamic link library and the TARGET uses the C functions. This item defaults to unchecked. This option is valid only if the server operating system is Windows (Itanium) or Windows(x64).

Output debugging information

Used to select whether to output debug information to the program data base file (PDB). This item defaults to check. This option is valid only if the server operating system is Windows(Itanium) or Windows(x64).

Link Option[-Wl]

Specifies the link options used by the ld command. This option is valid only if the server operating system is Solaris, Linux(64) or Linux(Itanium)

Note

If "THREAD (MULTI)" is specified on the project properties Build page Compiler Options tab, the -Tm option, which is used for linking a multithread model program, is automatically set.