Hi Reeza/Ballardw,
Even using the values given in the table are not working as expected.
data test; infile datalines dlm=','; input name $ salary 8.; datalines; venkat pati raju,400000455225 vivek rattakonda murali,425 kiran kumar segu,9007199254740992 sagar adirala bahu,72057594037927936 ; run;
Its returning only 8 digits even after applying 8. format.
Largest Integer That Can Be Safely Stored in a Given Length
When Variable Length Equals ...
Largest Integer
z/OS
Largest Integer
Windows or UNIX
2
256
not applicable
3
65,536
8,192
4
16,777,216
2,097,152
5
4,294,967,296
536,870,912
6
1,099,511,627,776
137,438,953,472
7
281,474,946,710,656
35,184,372,088,832
8 (default)
72,057,594,037,927,936
9,007,199,254,740,992
Significant Digits and Largest Integer by Length for SAS Variables under Windows
Length in Bytes
Largest Integer Represented Exactly
Exponential Notation
Significant Digits Retained
3
8,192
2 13
3
4
2,097,152
2 21
6
5
536,870,912
2 29
8
6
137,438,953,472
2 37
11
7
35,184,372,088,832
2 45
13
8
9,007,199,254,740,992
2 53
15
... View more