Something missing?
ods tagsets.ExcelXP file='D:\Admin\CA_NIC.xml' style=printer;
ods tagsets.ExcelXP options(sheet_interval='bygroup' sheet_label='Distrct'
absolute_column_width = '6,10,11,11,25,10,25,6,6,6,30,25,11,11,11,11');
Title 'Current Quarter Assets vs. Previous Quarter';
Proc print data=Admin.Canicmerged noobs label split='*';
by lead_ofc_id;
var id_rssd;
var PctDiff / Style={tagattr='format:0.00;[Red]\(0.00\)'};
var &qtr2 ;
var &qtr1 ;
var idrssd ;
var supr_event_nr ;
The problem was that the field was formatted as NEGPAREN8.2 in the table.
As soon as I changed it to 8.2 and recreated the table - it worked.
Thanks all!
Have you tried running your code with and without the / Style option and compared the resulting xml files?
Sometimes style overrides don't work and you have to create new style elements.
Same result. Is the number supposed to be stored by excel as text? Maybe I should change the format in the table.
The problem was that the field was formatted as NEGPAREN8.2 in the table.
As soon as I changed it to 8.2 and recreated the table - it worked.
Thanks all!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.