YENw.d Format

Writes numeric values with yen signs, commas, and decimal points.
Category: Numeric
Alignment: right

Syntax

YENw.d

Syntax Description

w
specifies the width of the output field.
Default:8
Range:1–32
d
specifies the number of digits to the right of the decimal point in the numeric value.
Range:0–9

Details

The YENw.d format writes numeric values with a leading yen sign and with a comma that separates every three digits of each value.
The hexadecimal representation of the code for the yen sign character is 5B on EBCDIC systems and 5C on ASCII systems. The monetary character these codes represent might be different in other countries.

Example

put cost yen10.2;
data _null_;
   value=1254.71;
   put value yen10.2;
  run;
Cost
Result
----+----1
1254.71
¥1,254.71

See Also

Informat: