Building models with SAS Enterprise Miner, SAS Factory Miner, SAS Visual Data Mining and Machine Learning or just with programming

Formatting an 18-long number from character to numeric

Accepted Solution Solved
Reply
Contributor
Posts: 24
Accepted Solution

Formatting an 18-long number from character to numeric

Hi huys

I have a character variable which is 18 numbers long and want to convert to numeric.

When using the inout function the value is changing. Can anyone advise the best way to do this?

Many Thanks

Jamie


Accepted Solutions
Solution
‎10-20-2011 08:27 AM
PROC Star
Posts: 7,468

Formatting an 18-long number from character to numeric

Yes.  Don't!  You can't go beyond 16 digits on a pc or 17 on a mainframe.  Take a look at: http://support.sas.com/techsup/technote/ts654.pdf

View solution in original post


All Replies
Solution
‎10-20-2011 08:27 AM
PROC Star
Posts: 7,468

Formatting an 18-long number from character to numeric

Yes.  Don't!  You can't go beyond 16 digits on a pc or 17 on a mainframe.  Take a look at: http://support.sas.com/techsup/technote/ts654.pdf

Contributor
Posts: 24

Formatting an 18-long number from character to numeric

Thank you sir

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 216 views
  • 0 likes
  • 2 in conversation