@ramonsi2 wrote:
*Format number
How Can import a file whit 19 Digit number format field.
Ex: 7086754897126543865
What do you mean by "IMPORT"?
If the value is in a text file then do not "import' it. Instead READ it from the text file with a data step.
If you have a 19 digit string in a text file then read it as a character variable. If you try to read it as a number you will "lose" some of the digits. SAS stores numbers as 64-bit binary floating point values. You cannot represent 19 digits exactly without some possible values being rounded to a multiple of two because there are not enough bits used for representing the value (the rest of the bits are used to store the magnitude (power of 2).
If this is not a number used in calculations, read it as character.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.