BookmarkSubscribeRSS Feed
AWXu
Calcite | Level 5

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);

 

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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?  

Cynthia_sas
SAS Super FREQ
Hi:
Are you sure that SKIP_SPACE is a valid suboption for ODS EXCEL? Look at the doc for the OPTIONS that you can specify:
http://support.sas.com/documentation/cdl/en/odsug/69832/HTML/default/viewer.htm#p09n5pw9ol0897n1qe04...

I don't see SKIP_SPACE here. If you are converting an ODS TAGSETS.EXCELXP program to ODS EXCEL, be aware that not all the suboptions from TAGSETS.EXCELXP will work with ODS EXCEL.

cynthia

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 2341 views
  • 0 likes
  • 3 in conversation