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
Diamond | Level 26
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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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