MNTCON CDN_FEXINPUT

How to:

By default, you must use a decimal point (.) to indicate a decimal position when writing a value in a Maintain procedure (for example, a COMPUTE statement), and a comma (,) to demarcate thousands, regardless of the CDN setting.

To write the value in a procedure using the format matching the CDN setting for a value other than OFF (for example, ON, QUOTE, QUOTEP, SPACE), use MNTCON CDN_FEXINPUT ON in the EDASPROF file or user profile, and use double quotation marks (") to delimit the value. You can use single quotation marks (') or double quotation marks (") when CDN=ON or SPACE. You must use double quotations marks (") when CDN=QUOTE or QUOTEP.

Example 1:

The following are both correct for all CDN settings by default:

COMPUTE MYVAL/D12.2=1234.56;
COMPUTE MYVAL/D12.2="1,234.56"; 

Example 2:

The following are both correct for SET CDN = QUOTE when the EDASPROF or user profile contains MNTCON CDN_FEXINPUT ON:

COMPUTE MYVAL/D12.2="1'234,56";
COMPUTE MYVAL/D12.2="1234,56";

Note: This command does not apply to values entered in a form at run time.

This command is outside the Maintain language, but is described in this content for your convenience.

Syntax: How to Use the MNTCON CDN_FEXINPUT Command

When using a CDN value other than OFF, place the following statement in the server profile file (edasprof.prf) or user profile:

MNTCON CDN_FEXINPUT {ON|OFF}

where:

ON

Allows you to write values in Maintain procedures in the manner used by the actual CDN setting, for example:

  • Using a comma (,) to denote a decimal place when CDN=ON, SPACE, or QUOTE.
  • Using a single quotation mark (') to demarcate thousands when CDN=QUOTE or QUOTEP.
  • Using a space to demarcate thousands when CDN=SPACE.

Follow these rules when writing values using Continental Decimal Notation with MNTCON CDN_FEXINPUT ON:

  • You must use single quotation marks (') or double quotation marks (") to delimit values for ON or SPACE.
  • You must use double quotation marks (") to delimit values for QUOTE. You must also use double quotation marks (") to delimit values for QUOTEP if you need to write the value with single quotation marks (') to separate thousands.
OFF

Requires you to write values in Maintain procedures using a period (.) to denote a decimal place for all CDN settings. OFF is the default value.

When demarcating thousands, a comma (,) must be used, and the value must be enclosed in quotation marks.