ODS and Base Reporting

Build reports by using ODS to create HTML, PDF, RTF, Excel, text reports and more!
BookmarkSubscribeRSS Feed
JudyL
Calcite | Level 5

I am using SAS 9.3.

 

How do I tell Excel to use the Accounting format (left justify the $ sign) rather than the Currency format (floating $ sign) using Excelxp tagset  and ODS?

 

I tried using the following, which I got from following the instructions about saving an Excel sheet as xml, but it did not left justify the $ sign.

 

var var1 / style={htmlstyle="mso-number-format:'_\(\0022$\0022* \#\,\#\#0_\)\;_\(\0022$\0022* \\\(\#\,\#\#0\\\)\;_\(\0022$\0022* \0022-\0022??_\)\;_\(\@_\)'"};

 

Thanks.

1 REPLY 1
Ksharp
Super User

Could you transform it into TEXT and export it ?

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 1184 views
  • 0 likes
  • 2 in conversation