Problem Note 56238: The EURO and EUROX formats do not display the Euro symbol with EBCDIC1145 encoding
The Euro symbol is not displayed with the numeric value when a variable is formatted with the EUROw.d or EUROXw.d formats. This is most likely to occur when ENCODING=EBCDIC1145 is used.
To circumvent the problem, format the variable with the NLMNLEURw.d format. This is the preferred format for displaying the Euro designation. The sample code on the Full Code tab illustrates this.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.4 TS1M0 | 9.4 TS1M4 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Formatting a variable with the EUROw.d and EUROXw.d formats do not write the Euro symbol along with the numeric value. This is illustrated in the first step in the code below.
A workaround is to use the NLMNLEURw.d format, shown in the second step.
/* Using the EUROw.d format does not display the Euro symbol */
data numfmt;
euro =1.234;
format euro euro8.2;
run;
proc print;
run;
/* Using the NLMNLEURw.d format does display the Euro symbol */
data numfmt;
euro =1.234;
format euro nlmnleur8.2;
run;
proc print;
run;
/* Output from the EURO8.2 format */
Obs EURO
1 1.23
/* Output from the NLMNLEUR8.2 format */
Obs EURO
1 €1.23
Type: | Problem Note |
Priority: | high |
Topic: | SAS Reference ==> Formats ==> Numeric ==> EURO
|
Date Modified: | 2017-06-14 15:56:53 |
Date Created: | 2015-07-22 10:15:53 |