DATA Step, Macro, Functions and more

To display morethan 16 digit in SAS mainframe

Reply
Contributor
Posts: 38

To display morethan 16 digit in SAS mainframe

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.
Super Contributor
Super Contributor
Posts: 3,174

Re: To display morethan 16 digit in SAS mainframe

Posted in reply to Sivanandam
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
Super User
Posts: 10,028

Re: To display morethan 16 digit in SAS mainframe

Posted in reply to Sivanandam
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
Super User
Posts: 10,028

Re: To display morethan 16 digit in SAS mainframe

Posted in reply to Sivanandam
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
Contributor
Posts: 38

Re: To display morethan 16 digit in SAS mainframe

Am getting the output but the digits are coming in exponent form is there any possibilty to come in numeric without exponent form
Super User
Posts: 10,028

Re: To display morethan 16 digit in SAS mainframe

Posted in reply to Sivanandam
Hi.
I am not quit sure.
Do you try to transform it into Character?

Ksharp
Valued Guide
Posts: 2,177

Re: To display morethan 16 digit in SAS mainframe

Posted in reply to Sivanandam
set the format as 32.
Contributor
Posts: 38

Re: To display morethan 16 digit in SAS mainframe

Could you please tell us ..How to set the format as 32..
Valued Guide
Posts: 2,177

Re: To display morethan 16 digit in SAS mainframe

Posted in reply to Sivanandam
if you show some code, we can help
If there is no code, let us know what services you use to create the output
Super User
Posts: 3,252

Re: To display morethan 16 digit in SAS mainframe

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.
Ask a Question
Discussion stats
  • 9 replies
  • 723 views
  • 0 likes
  • 5 in conversation