Informats for NLS |
Category: | Numeric |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples | |
See Also |
Syntax |
NLMNYw.d |
specifies the width of the input field.
Default: | 9 |
Range: | 1-32 |
optionally specifies whether to divide the number by 10d. If the data contains decimal separators, the d value is ignored.
Default: | 0 |
Range: | 0-31 |
Details |
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.
Comparisons |
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.
Examples |
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 |
See Also |
| |||||
Informats: |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.