BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Jose7
Obsidian | Level 7

Hi experts,

 

I have a table in sybase IQ with a numeric field like this 

74882512059898578830423 

 it´s a numeric(23,0), but when i read this number in a sas query, shows me a diferent number 

74882512059898582269952 and also like this 7.48825120598986E+22

 is there a way to obtain the original number that i have in sybase IQ ??, i have tried to convert to text, but i obtain the same.

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

What arithmetic are you doing with a number with that many digits?

 

You should show exactly how you connected to Sybase to retrieve that data. Someone with experience connecting to that database may have a suggestion but it may be converting to character in the database before reading into SAS.

View solution in original post

1 REPLY 1
ballardw
Super User

What arithmetic are you doing with a number with that many digits?

 

You should show exactly how you connected to Sybase to retrieve that data. Someone with experience connecting to that database may have a suggestion but it may be converting to character in the database before reading into SAS.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 339 views
  • 1 like
  • 2 in conversation