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!
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.