BookmarkSubscribeRSS Feed
Sivanandam
Calcite | Level 5
Hi ,

Could any one tell us how to display more than 16 digit numeric value in SAS.
Default is 8 bytes so maximum 15 or 16 digit we can display..
Is it possible to do that..if yes please let us know..

Thanks,
Siva.
9 REPLIES 9
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Recommended reading on the topic (section on z/OS platform):

Numeric Precision in SAS Software

http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000695157.htm

Also, recommend the SAS "companion documentation" for your OS - available at the SAS support http://support.sas.com/ website.

Recommend a post-reply from the OP with a specific data example, ideally shown in a SAS generated log demonstrating the specific problem - suggest using the SAS output format BEST. to represent your variable.


Scott Barry
SBBWorks, Inc.

Suggested Google advanced search argument, this topic / post:
sas numeric precision +"z/os" site:sas.com Message was edited by: sbb
Ksharp
Super User
You can change the length of numeric value,
If you can not then try to use format Ew. which can use scientific count method to display more then 16 digit numeric value.




Ksharp
Ksharp
Super User
You can change the length of numeric value,
If you can not then try to use format Ew. which can use scientific count method to display more then 16 digit numeric value.




Ksharp
Sivanandam
Calcite | Level 5
Am getting the output but the digits are coming in exponent form is there any possibilty to come in numeric without exponent form
Ksharp
Super User
Hi.
I am not quit sure.
Do you try to transform it into Character?

Ksharp
Peter_C
Rhodochrosite | Level 12
set the format as 32.
Sivanandam
Calcite | Level 5
Could you please tell us ..How to set the format as 32..
Peter_C
Rhodochrosite | Level 12
if you show some code, we can help
If there is no code, let us know what services you use to create the output
SASKiwi
PROC Star
Also no context to this problem has been supplied, for example what is this 16-digit number used for? Also is it a whole number or are there decimals? This information is useful to providing the best advice.

For example, in banking most credit card numbers are 16 digits long (4 groups of 4 digits), but are held as character data to avoid any precision or formatting issues.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 9 replies
  • 2961 views
  • 0 likes
  • 5 in conversation