Help using Base SAS procedures

Reg:Length

Reply
Contributor
Posts: 66

Reg:Length

Hi
Query:1

i am having two variables i want to muliply them but the output is coming in Exponentials and i have used format 32.
How can i resolve this
a=7757867676768978 b=5756567567565
c=a*b;

Query:2
How can i read this 7867896876876786786786876786786786 were there are 40-50 numbers in a vaiable.
Super Contributor
Super Contributor
Posts: 3,174

Re: Reg:Length

Q1: You can associate a desired SAS output FORMAT for your large variable.

Q2: There are architecture limits with the SAS system.

Scott Barry
SBBWorks, Inc.

Suggested Google advanced search arguments, this topic / post:

numeric precision site:sas.com

input numeric data site:sas.com
Valued Guide
Posts: 634

Re: Reg:Length

Are these actual numbers or are they strings that carry a series of digits. If vary large numbers need to be generated, what level of accuracy is truly needed?

Q2: a large number of digits can be accomodated in a Character string, however numeric calculations become problematic. There are large number calculators available that use techniques that you could program into a DATA step, but the result would probably still not fit a numeric value.
Ask a Question
Discussion stats
  • 2 replies
  • 122 views
  • 0 likes
  • 3 in conversation