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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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