Hello
I'm using Enterprise Guide 7.1 (32bit) on a windows 10 PC.
The difficulty I have is controlling when a new worksheet is to be created, particularly when I want the worksheet to contain multiple procedures, so SHEET_INTERVAL='Proc' is no good for me.
What I'm finding is the following:
All insights into this are welcome, I look forward to your input.
RB1
ods listing close;
ods results off;
* Open the workbook and start the first worksheet. ;
ods Excel file = "C:\.....\Test.xlsx"
style=htmlblue
options(
sheet_name = "One Proc"
);
proc print data=sashelp.cars;
run;
* Commence a second worksheet with multiple print procedures contained within it. ;
ods Excel
options(
sheet_name = "Two Procs"
sheet_interval='none'
);
proc print data=sashelp.class;
run;
proc print data=sashelp.classfit;
run;
* A third worksheet with two printing procedures. NOW or NONE or omitted SHEET_INTERVAL do not work as I expected,
resulting in the second worksheet containing 4 print outputs.;
ods Excel
options(
sheet_name = "Two more Procs"
/* sheet_interval='now'*/
sheet_interval='none'
);
proc print data=sashelp.class;
run;
proc print data=sashelp.fish;
run;
ods excel close;
ODS LISTING;
This is a known issue. The solution is on here (I posted it) but it's originally from an ODS EXCEL blog post by Chris Hemidinger. I'm off to meetings, but if you don't find the response, post back and I can help you find it later on.
https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/td-p/261953
This is a known issue. The solution is on here (I posted it) but it's originally from an ODS EXCEL blog post by Chris Hemidinger. I'm off to meetings, but if you don't find the response, post back and I can help you find it later on.
https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-amp-multiple-sheets/td-p/261953
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.