| Informats for NLS |
| Category: | Numeric |
| Syntax | |
| Syntax Description | |
| Details | |
| Comparisons | |
| Examples | |
| See Also |
Syntax |
| NLMNYIw.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 NLMNYIw.d informat reads monetary data in the specified locale for the international 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 NLMNYIw.d informat performs processing that is the opposite of the NLMNYw.d informat.
| Examples |
The following examples use the input value of 12,345.67.
| Statements | Results |
|---|---|
|
|
----+----1----+ |
options LOCALE=English_UnitedStates;
x=input('(USD12,345.67)',nlmnyi32.2);
y=input('$-12,345.67)',dollar32.2);
put x=;
put y=; |
-12345.67
-12345.67 |
| See Also |
|
Formats: | |||||
|
Informats: |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.