BookmarkSubscribeRSS Feed
Nimish28
Calcite | Level 5

Hi All,

 

I am facing one issue where I am getting empty rows in between my titles while exporting using ods.

 

any leads on this will be appreciated.

 

thanks.

3 REPLIES 3
Cynthia_sas
SAS Super FREQ

Hi:

  This is not what I observe when I run some test code:

Cynthia_sas_0-1613746680707.png

 

With the embedded_titles='yes' suboption, I see Title1 is in row 1 and Title 2 is in row 2. I do not get an empty row between my titles. And, in PRINT PREVIEW mode in Excel, I still do not see an empty row between my titles:

Cynthia_sas_1-1613746805275.png

You might need to work with Tech Support so they can look at your data and ALL your code and see whether there is something in your code that might be causing the empty row.

Cynthia

 

Nimish28
Calcite | Level 5

Hi Cynthia,

 

Thanks for replying. I just realised that the issue is with the excel cell width due to which title text are not getting wrapped.

can you assist on fixing the cell width?

Cynthia_sas
SAS Super FREQ
Hi:
You'll have to figure out how you want to do it. One way is to use the H= option of the TITLE statement to make the title a smaller font:
title1 h=8pt 'Really long title';

And the other way would be to use a sub-option that tells TAGSETS.EXCELXP to use more cells for the title. By default, the title spans the number of cells in the table, so with tables that only have 2 or 3 or 5 columns, your title may end up wrapping. I believe there is a sub-option that lets you specify how many cells to use for the titles/footnotes.

If you don't know how to see the sub-options, the next time you invoke the code, add this:
ods tagsets.excelxp file='......' options(doc='Help');

The doc='Help' sub-option will put all the possible sub-options into the SAS log. I can't remember now whether it is TITLE_WIDTH or TITLE_FOOT_WIDTH or something similar. Maybe TITLE_FOOTNOTE_WIDTH. Worth investigating.

Cynthia

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 3 replies
  • 881 views
  • 1 like
  • 2 in conversation