Chapter Contents |
Previous |
Next |
VMSZNw.d |
Language element: | informat |
Category: | numeric |
Width range: | 1 to 32 |
Default width: | 1 |
OpenVMS specifics: | All aspects are host-specific |
Syntax | |
Details | |
Examples | |
See Also |
Syntax |
VMSZNw.d |
Details |
The VMSZNw.d informat is similar to the ZDw.d informat. Both read a string of ASCII digits, and the last digit is a special character denoting the magnitude of the last digit and the sign of the entire number. The difference between the VMSZNw.d informat and the ZDw.d informat is in the special character used for the last digit. The following table shows the special characters used by the VMSZNw.d informat.
Desired Digit |
Special Character |
Desired Digit |
Special Character |
|
---|---|---|---|---|
0 | 0 | -0 | p | |
1 | 1 | -1 | q | |
2 | 2 | -2 | r | |
3 | 3 | -3 | s | |
4 | 4 | -4 | t | |
5 | 5 | -5 | u | |
6 | 6 | -6 | v | |
7 | 7 | -7 | w | |
8 | 8 | -8 | x | |
9 | 9 | -9 | y |
Data formatted using the VMSZNw.d informat are ASCII strings.
Examples |
If you format the ASCII string 1234 using the VMSZNw.d informat in the following SAS statement:
input @1 vmszn4.;the result is 1234.
If you format the ASCII string 123t using the VMSZNw.d informat in the following SAS statement:
input @1 vmszn4.;the result is -1234.
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.