Is there a way to use a custom format to order and a compute block to determine two different display formats e.g. percent and comma?
proc report data=combined; format displayNum2 courseOfferingformatValue.; /*this line does not take effect*/ column row_label academic_period, displayNum2; define row_label / group '' order = internal; define academic_period / across ''; define displayNum2 / analysis ''; compute displayNum2; if row_label='Percent of Sections Cancelled' then call define(_col_,'format','percent8.2'); else call define(_col_, 'format','comma10.'); endcomp; run;
call define(_col_,"style","....") is used as the output is sent to Excel.
No sure if this would be applicable to your ODS destination.
SAS INNOVATE 2024
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.