Topics: |
How to: |
Reference: |
You can select a currency symbol for display in report output regardless of the default currency symbol configured for National Language Support (NLS). Use the extended currency symbol format in place of the floating dollar (M) or non-floating dollar (N) display option in a Master File or in a DEFINE command in a procedure.
When you use the floating dollar (M) or non-floating dollar (N) display option, WebFOCUS prints the currency symbol associated with the default code page. For example, when you use an American English code page, the dollar sign is displayed as the currency symbol.
The extended currency symbol format allows you to display a symbol other than the dollar sign. Using the extended currency symbol format, you can display the symbol for a United States dollar, a British pound, a Japanese yen, or the euro.
The extended currency symbol formats are available for numeric formats (I, D, F, and P).
The following guidelines apply:
You can also set an extended currency symbol by specifying it in the format of a field. You can set a currency symbol field format in a DEFINE or COMPUTE field or in a function.
numeric_format{:|!}option
where:
Is a valid numeric format (data type I, D, F, or P).
Either a colon (:) or exclamation point (!) is required. Note that only the colon is invariant across code pages, and therefore may be preferable.
Determines the currency symbol that is displayed and where the symbol appears. Possible values are:
The following request displays the British pound sterling symbol on the row that represents England, the euro symbol on the row that represents Italy, and the Japanese yen symbol on the row that represents Japan.
SET PAGE-NUM = OFF DEFINE FILE CAR CFORMAT/A8 = DECODE COUNTRY('ENGLAND' 'F12.1C!L' 'JAPAN' 'D12!Y' ELSE 'D12.2!E'); END TABLE FILE CAR PRINT SALES/CFORMAT DEALER_COST/CFORMAT BY COUNTRY WHERE COUNTRY EQ 'ENGLAND' OR 'JAPAN' OR 'ITALY' WHERE SALES GT 0 ON TABLE SET STYLE * TYPE = REPORT, GRID = OFF,$ ENDSTYLE END
The output is:
You can also use an extended currency symbol in a report by applying it from the user interface in InfoAssist+ or App Studio.
The CURRSYMB parameter specifies a symbol used to represent currency when a numeric format specification uses the M or N display options. The default currency symbol depends on the code page being used.
The syntax is:
SET CURRSYMB = symbol
where:
Is any printable character or a supported currency code. The following are possible values.
Note: In order to specify a dollar sign ($) as the character, you must enclose it in single quotation marks (').
The CURSYM_D parameter specifies the characters used to represent currency when a numeric format specification uses the !D, :D, !d, or :d display options, which by default display a floating (D) or fixed (d) dollar sign to the left of the number.
The syntax is:
SET CURSYM_D = symbol
where:
Is up to four printable characters.
The CURSYM_E parameter specifies the characters used to represent currency when a numeric format specification uses the !E, :E, !e, or :e display options, which by default display a floating (E) or fixed (e) euro sign to the left of the number.
The syntax is:
SET CURSYM_E = symbol
where:
Is up to four printable characters.
The CURSYM_F parameter specifies the characters used to represent currency when a numeric format specification uses the !F or :F display option, which by default displays a floating euro sign to the right of the number. This command supports adding a blank space between the number and the currency symbol.
The syntax is:
SET CURSYM_F = symbol
where:
Is up to four printable characters. If the characters include a blank space, they must be enclosed in single quotation marks.
The CURSYM_G parameter specifies the characters used to represent currency when a numeric format specification uses the !G or :G display option, which by default displays a floating dollar sign to the right of the number. This command supports adding a blank space between the number and the currency symbol.
The syntax is:
SET CURSYM_G = symbol
where:
Is up to four printable characters. If the characters include a blank space, they must be enclosed in single quotation marks.
The CURSYM_L parameter specifies the characters used to represent currency when a numeric format specification uses the !L, :L, !l, or :l display options, which by default display a floating (L) or fixed (l) British pound symbol to the left of the number.
The syntax is:
SET CURSYM_L = symbol
where:
Is up to four printable characters.
The CURSYM_Y parameter specifies the characters used to represent currency when a numeric format specification uses the !Y, :Y, !y, or :y display options, which by default display a floating (L) or fixed (l) Japanese yen or Chinese yuan symbol to the left of the number.
The syntax is:
SET CURSYM_Y = symbol
where:
Is up to four printable characters.
You can specify an ISO code to display automatically for fields with monetary values. By default, this code only appears as a replacement when the currency symbol cannot be displayed by the code page in effect. However, you can determine whether you want the ISO code to always display or never display instead.
These values can be set for an individual procedure using the syntax below, or can be set at the server level for all procedures run on that server. For more information, see How to Change LOCALE Settings on the WebFOCUS Reporting Server.
The CURRENCY_ISO_CODE parameter defines the ISO code for the currency symbol to use. By default, the server uses the currency code that matches the configured language code, but you can set a currency code manually.
The syntax is:
SET CURRENCY_ISO_CODE = iso
where:
Is a standard three-character currency code, such as USD for US dollars or JPY for Japanese yen. The default value is default, which uses the currency code for the configured language code.
You can determine when you want a currency ISO code to display using the CURRENCY_PRINT_ISO parameter. By default, the ISO code only appears when the currency symbol cannot be displayed by the code page in effect.
The syntax is:
SET CURRENCY_PRINT_ISO = {DEFAULT|ALWAYS|NEVER}
where:
Replaces the currency symbol with its ISO code when the symbol cannot be displayed by the code page in effect. This is the default value.
Always replaces the currency symbol with its ISO code.
Never replaces the currency symbol with its ISO code. If the currency symbol cannot be displayed by the code3 page in effect, it will not be printed at all.
Note: Using a Unicode environment allows the printing of all currency symbols, otherwise this setting is needed.
WebFOCUS | |
Feedback |