BookmarkSubscribeRSS Feed
ramonsi2
Calcite | Level 5
*Format number

How Can import a file whit 19 Digit number format field.

Ex: 7086754897126543865
2 REPLIES 2
Tom
Super User Tom
Super User

@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).

SAS Innovate 2025: Call for Content

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!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 466 views
  • 1 like
  • 3 in conversation