Rational Developer for System z, Version 7.6

ImportProperty

Use this element to provide information about the compiler options as appropriate for the programming language that you specify in the ImportPropertyArray element. You can use this element in the ServiceSpecification.xml document to override the compiler options that you set in PlatformProperties.xml. If you want to generate language converters, you are required to specify this element in the PlatformProperties.xml document.

Contained by

ImportPropertyArray

Contains

None

Attributes

Start the value of the name attribute with com.ibm.etools.cobol.
Note: When generating language converters, the defaults do not apply; ALL properties must be specified.
The valid pairs of names and values for COBOL are shown in Table 1.
Table 1. Attribute Specifications for ImportProperty
Fields Description

Attribute: COBOL_ASCII_CODEPAGE
Valid values: 0 | 1 | 2
Required?: -
Default value: 0

Specifies the code page for a locale. From Locale and code pages table, the rightmost code-page entry in ASCII code pages column is the default for a given locale name.

For example: for locale en_US, the Locale and code pages table specifies:

Locale name: en_US
Language: English
Country or area: United States
ASCII code pages: IBM-437,IBM-850,IBM-1252
Language group: Latin 1
For the en_US locale, the values for COBOL_ASCII_CODEPAGE correspond to the ASCII code pages as follows:
2 - IBM-437
1 - IBM-850
0 - IBM-1252

Attribute:
COBOL_COMPILE_TIME_LOCALE
Valid values: 1 through 50
Required?: -
Default value: 14

Specifies the index number for the locale. From the Locale and code pages table, you can determine the index number by counting the row number of the locale name you are interested in. For example:
 1 - ar_AA
14 - en_US
50 - zh_TW

See Locale and code pages for additional information.

Attribute: COBOL_ERROR_MSGS_LANG
Valid values: 0 through 13
Required?: -
Default value: 0

Specifies the language used to display the syntax errors. The values correspond to the languages as follows:
   0 - en_US
   1 - ja_JP
   2 - zh_TW
   3 - zh_CN
   4 - ko_KR
   5 - it_IT
   6 - fr_FR
   7 - es_ES
   8 - de_DE
   9 - pt_BR
   10 - CS_CZ
   11 - HU_HU
   12 - PL_PL
   13 - RU_RU

The default is en_US. To change this value, use the preferences page.

Attribute: COBOL_EXTENSION_CBL
Valid values: FP | DS
Required?: -
Default value: FP

Specifies the default extension behavior. A file is assumed to be a complete COBOL program if it has the extension of .cbl, .ccp or .cob. A file is assumed to be a copy book if it has the extension .cpy. If the file is a copybook member then it should consist of only one or more 01 language structures or 01 or 77 elementary data item definition.

The user can change the default extension behavior by setting it to "FP" (Full program) or "DS" (Only language structures).

Attribute: COBOL_EXTENSION_CCP
Valid values: FP | DS
Required?: -
Default value: FP

Specifies the default extension behavior. A file is assumed to be a complete COBOL program if it has the extension of .cbl, .ccp or .cob. A file is assumed to be a copy book if it has the extension .cpy. If the file is a copybook member then it should consist of only one or more 01 language structures or 01 or 77 elementary data item definition.

The user can change the default extension behavior by setting it to "FP" (Full program) or "DS" (Only language structures).

Attribute: COBOL_EXTENSION_COB
Valid values: FP | DS
Required?: -
Default value: FP

Specifies the default extension behavior. A file is assumed to be a complete COBOL program if it has the extension of .cbl, .ccp or .cob. A file is assumed to be a copy book if it has the extension .cpy. If the file is a copybook member then it should consist of only one or more 01 language structures or 01 or 77 elementary data item definition.

The user can change the default extension behavior by setting it to "FP" (Full program) or "DS" (Only language structures).

Attribute: COBOL_EXTENSION_CPY
Valid values: FP | DS
Required?: -
Default value: FP

Specifies the default extension behavior. A file is assumed to be a complete COBOL program if it has the extension of .cbl, .ccp or .cob. A file is assumed to be a copy book if it has the extension .cpy. If the file is a copybook member then it should consist of only one or more 01 language structures or 01 or 77 elementary data item definition.

The user can change the default extension behavior by setting it to "FP" (Full program) or "DS" (Only language structures).

Attribute: COBOL_NSYMBOL
Valid values: NATIONAL | DBCS
Required?: -
Default value: NATIONAL

Specifies the setting of the COBOL_NSYMBOL compile-time option.

Attribute: COBOL_QUOTE
Valid values: DOUBLE | SINGLE
Required?: -
Default value: DOUBLE

Specifies the setting of the COBOL_QUOTE compile-time option.

Attribute: COBOL_SYSLIB
Valid values: One or more directories
in which copy books are located.
Required?: -
Default value: See Description

Use this option to list copy books on which a COBOL source file that you are importing has dependencies (see Example).

The default value is: Directory location of the COBOL source file.

Attribute: COBOL_TRUNC
Valid values: STD | OPT | BIN
Required?: -
Default value: STD

Specifies the setting of the COBOL_TRUNC compile-time option.

Example

<ImportPropertyArray type="Cobol">
        <ImportProperty name="com.ibm.etools.cobol.COBOL_TRUNC" value="STD"/>
        <ImportProperty name="com.ibm.etools.cobol.COBOL_NSYMBOL" value="DBCS"/>
        <ImportProperty name="com.ibm.etools.cobol.COBOL_QUOTE" value="DOUBLE"/>
        <ImportProperty name="com.ibm.etools.cobol.COBOL_SYSLIB"
                value="C:\cobol\copy books;C:\mycopybooks"/>
</ImportPropertyArray>

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)