Reads monetary data in the specified locale for the local expression,
and then converts the data to a numeric value.
-
w
-
specifies the width of the input field.
-
d
-
optionally specifies whether to divide
the number by 10d. If the data contains
decimal separators, the d value is ignored.
The NLMNYw.d informat reads monetary data in the specified locale for
the local expression, and then converts the data to a numeric value. It removes
any thousands separators, decimal separators, blanks, the currency symbol,
and the close parenthesis from the input data.
The NLMNYw.d informat performs processing that is the opposite of
the
NLMNYIw.d informat.
The NLMNYw.d
informat is similar to the DOLLARw.d informat except that the NLMNYw.d informat is
locale-specific.
The following examples use the input value of $12,345.67.
Statements |
Results |
|
----+----1----+
|
options LOCALE=English_UnitedStates;
x=input('($12,345.67)',nlmny32.2);
y=input('($12,345.67)',dollar32.2);
put x=;
put y=;
|
-12345.67
-12345.67
|
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.