decimalSymbol

The decimalSymbol build descriptor option specifies a character to be used as the decimal symbol at runtime. If you specify a value for this option, specify a compatible value for the separatorSymbol build descriptor option.

When you generate any COBOL program that does not use print forms, the following statements apply:
  • If you do not specify the decimalSymbol build descriptor option, the value is set by the decimal point character specified in the language-dependent options module specified for your runtime installation. For z/OS®, refer to the program directory for your runtime product for related details.
  • If you specify values in both the build descriptor option and the options module, ensure that they are the same.

When you generate a COBOL program that uses print forms, and you do not specify the decimalSymbol build descriptor option, a period is used.

When you are generating Java code, the decimalSymbol build descriptor option assigns a character to the vgj.nls.number.decimal Java runtime property if the genProperties build descriptor option is set to GLOBAL or PROGRAM. If you do not specify the decimalSymbol build descriptor option, the character is determined by the locale associated with the vgj.nls.code Java runtime property.

The value can be no more than one character.

When you assign a number to a CHAR type field, the decimal symbol in that number must match the current decimal symbol in the runtime environment. If the symbols do not match, an error will result.