BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
VISHNU239
Obsidian | Level 7

How to avoid page breaks in sas proc tabulate?i  want all the tables in one page. i am using ODS excel.

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Show your code.

 

Include our ODS Excel statement.

 

If you have sheet_interval='TABLE', which is the default, and proc tabulate generates two or more tables then you have told it to place the results on two or more sheets.

Likely you need to add the option sheet_interval='PROC' to sent all output from the proc to a single sheet.

View solution in original post

5 REPLIES 5
Reeza
Super User

Does the information fit on a single page?

If not, you need to modify the style/font to force it to fit, if possible. Or are you getting page breaks somewhere else? Do you have PAGE variable in your table? If you can provide some more details we can probably offer some options. 

 

PS. I'm moving your post to the ODS and Base Reporting forum.

 


@VISHNU239 wrote:

How to avoid page breaks in sas proc tabulate?i  want all the tables in one page. i am using ODS excel.


 

VISHNU239
Obsidian | Level 7

yes. I want all the information in a single sheet and using options(sheet_interval='none') after ods excel statement worked for me in enterprise guide.

ballardw
Super User

Show your code.

 

Include our ODS Excel statement.

 

If you have sheet_interval='TABLE', which is the default, and proc tabulate generates two or more tables then you have told it to place the results on two or more sheets.

Likely you need to add the option sheet_interval='PROC' to sent all output from the proc to a single sheet.

Cynthia_sas
SAS Super FREQ
Hi:
OR use sheet_interval='none' -- whether you use PROC or NONE, depends on your code and what your end result is and what your TABLE statement is.
Cynthia
VISHNU239
Obsidian | Level 7

thanks Cynthia it worked.

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
  • 5 replies
  • 2712 views
  • 3 likes
  • 4 in conversation