Hi ,
I need to do two bwlow tasks :
1: I have three reports/table , want all them to be placed horizontally in excel (sheet_interval='none') work to place them vertially
can you suggest way in ods tagsets.excelxp
2: I have a report as a sample attached where there are multiple Desc and based on that creating different columns
But I dont want the first heading in proc report output (Ex: Desc)
How can I do that . Below is the code I have used
proc report data=Sample
style(report)=[font=(calibri, 10pt) just=left]
style(column header)=[font=(calibri,12pt) font_weight = bold just=left]
style(column)=[font=(calibri, 10pt)] nowd;
column ('ID' ID) desc, Var;
define ID / group ' ';
define desc / across order=data;
define var / analysis sum style={tagattr='format:#,##0;[RED]-#,##0'} '';
run;
1. Use ODS EXCEL . (ods tagsets.excelxp produces files that are in reality xml files and are bloated -large in size. )
2.There are number of resources available . For example a good starting point is https://blogs.sas.com/content/sgf/2017/02/20/tips-for-using-the-ods-excel-destination/
@Sajid01 I have attached sample so there can be multiple proc results . I want them to be placed horizontally
Thanks.
I don't see any correlation between your original spreadsheet and the current one.
Hi:
It is easier to place output from different procedures on one page horizontally using ODS PDF and ODS LAYOUT, as shown below:
This type of ODS LAYOUT is not supported for the ODS EXCEL destination, so this code would not work for Excel.
Since this capability to place procedure output horizontally is not available for ODS EXCEL You'd have to do a lot of data manipulation to create one data set with multiple columns to make this work in Excel. Here's an example:
In the above example, I just used 2 different datasets side by side. Assuming that your procedure of interest makes an output dataset, then you could do something similar but it is a lot of work to do something that ODS PDF does quite easily.
Cynthia
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.