How to read more than 32 bytes data using numeric formats.

Reply
Occasional Contributor
Posts: 10

How to read more than 32 bytes data using numeric formats.

Hi All,

I have a variable ,it is numeric data type which contains vlaues more than 32 bytes .My requirement is to read  and load the data as it as with numeric datatype using formats.I tried with various numeric formats but no luck finally i findout numeric formats has maximum 32 bytes beyond it cannot support.But i tried with Bestxw.d which has 64 bytes max length  but not get expected result .Can anyone expereinced same problem and Please Suggets me.

Example:

1234456789123456789.123455555555555555555.

Super User
Super User
Posts: 7,401

Re: How to read more than 32 bytes data using numeric formats.

Super User
Posts: 6,938

Re: How to read more than 32 bytes data using numeric formats.

Since SAS only uses 8 bytes real to store numbers, the precision is naturally limited. Read the data into a string, cut down to a suitable number of characters and then convert to numeric.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 2 replies
  • 182 views
  • 0 likes
  • 3 in conversation