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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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
  • 9 replies
  • 2376 views
  • 0 likes
  • 5 in conversation