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-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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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