BookmarkSubscribeRSS Feed
xxformat_com
Barite | Level 11

Hi,

 

I'm not clear about the 6th value of the ROW_HEIGHTS option in ods excel.

 

According to the SAS Online Doc, it has to do with Page Break Height.

https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm

 

As per definition a page break has no height, I'm wondering if it has to do with a SAS specific "page break"

- something to do with the pagesize global optio?

- something to do with a specific proecure like proc report ?

- something to do with another option of ods excel such as rowbreaks_interval ?

Would you have any example to help me understand what a Page Break Height is ? I couldn't find any on the Internet.

 

 

2 REPLIES 2
Norman21
Lapis Lazuli | Level 10

You can change the page height as follows:

 

ods excel file = "C:\My SAS\_examples_\Example.xlsx" options(ROWBREAKS_COUNT='25');

proc print data=sashelp.cars;
run;

ods excel close ;

You can see the effect of changing ROWBREAKS_COUNT in Excel by selecting View, Page Break Preview:

 

Screenshot 2021-11-05 074727.png

Norman.
SAS 9.4 (TS1M6) X64_10PRO WIN 10.0.17763 Workstation

xxformat_com
Barite | Level 11

I guess the way I phrase my question was not clear.

Let's take an example similar to yours. I use 40px for the 6th element or row_heights but I have no clue what would be impacted.

 

ods excel file = "&xxtest./reporting/test.xlsx" 
          options(row_heights='0,0,0,0,0,40px,0');

proc print data=sashelp.cars;
run;

ods excel close ;

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 482 views
  • 0 likes
  • 2 in conversation