08-13-2012 06:34 AM
I have a variable in ORACLE database with value like 12345678901234567890--20 digits.
But SAS only support up to 16 digits.
Is there anyway to read in that 20 digits number without loss of accuracy?
08-13-2012 07:15 AM
By using Formats you can able to display numeric variables which length is more then 16.
format a best20.;
08-13-2012 01:48 PM
It is not a matter of importing the value, but rather one of storage. SAS uses a length of 8 to store numerics, this allows 16 digits to be stored accurately (depending on your OS). See http://support.sas.com/techsup/technote/ts654.pdf for more information.
So what to do? It depends. What do you want to do with the data value? Arithmatic? Is it a code that can be converted to character as suggested above?
08-14-2012 02:10 PM
If these are just key values can't they be treated as character strings? If you truly need them to be numeric, you will need to tell us what it is that you are trying to accomplish with them.
08-14-2012 06:03 PM
does the table server help, with its extension to data types in SAS.
It was called something like "data step 2" before GA in earlier releases of SAS9