BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Tom
Super User Tom
Super User

@PatMalarkey wrote:
I was able to use ODS Excel to write the sheet with the issue to Excel and the percent retains the correct format. I need to write multiple sheets to the workbook, so it's not a complete solution - though I was able to write the other sheets using LIBNAME.

So have we now moved away from being worried about the values being wrong and are now talking about how to control the "format" used in to display the numbers in the XLSX file?

PatMalarkey
Obsidian | Level 7

No.  The values are incorrect when I use the LIBNAME method.  They get rounded and they should not be.  ODS is one work-around, but it is less than optimal.

Reeza
Super User
ODS EXCEL supports multiple sheets and multiple tables per sheet.
Tom
Super User Tom
Super User

@PatMalarkey wrote:

No.  The values are incorrect when I use the LIBNAME method.  They get rounded and they should not be.  ODS is one work-around, but it is less than optimal.


We have shown that the XLSX engine does not round the sample value you sent.

 

So if it is still doing that for you (and you are using at least SAS 9.4M5) then open a support ticket with SAS support to have them help debug why your installation is not working.  Perhaps the issue is only triggered with the right combination of data and not just the simple example value you posted.

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
  • 19 replies
  • 1418 views
  • 3 likes
  • 3 in conversation