Hi,
We recently found that the skip_space option for ODS Excel is no longer recognised. Deleting the skip_space option causes all our proc tabulate outputs (about 20 per sheet) to write in the same excel worksheet. Are there any other options that can substitute the function of skip_space?
Appreciate any help on this.
An extract of the code below (there's about 20 proc tabulate macros per sheet and 6 sheets in total):
* Sheet 1;
ODS Excel
FILE="&Directory.&Save_File..xlsx"
style=htmlblue
options(
start_at="A2"
sheet_interval='none'
sheet_name='All'
embedded_titles='yes'
zoom='80'
skip_space='1,0,0,0,0');
%proc tabulate macro(1);
%proc tabulate macro(2);
%proc tabulate macro(3);
* Sheet 2;
ODS Excel
style=htmlblue
options(
start_at="A2"
sheet_interval='none'
sheet_name='Small'
embedded_titles='yes'
skip_space='1,0,0,0,0');
%proc tabulate macro(1);
%proc tabulate macro(2);
%proc tabulate macro(3);
Have you tried changing the sheet_interval option?
SHEET_INTERVAL | Table | Interval to divide the output between worksheets. Values are Table, Page, Bygroup, Proc, or None |
What I see from your program is that you call the same tabulate code multiple times, with a parameter, why not just have the tabulate code, and set a by varaible. Then sheet_interval set to Bygroup will have each by group on a new sheet?
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.