BookmarkSubscribeRSS Feed
abhinayingole
Obsidian | Level 7

any simple method to have variable in SAS dataset for page interval (e.g 15) ?

2 REPLIES 2
Reeza
Super User
Depends on the output type (RTF, PDF) and page size so it's usually generated as part of the output process not on the data set because the page interval will obviously vary by those factors. If you're using something like a BREAK statement to create pages the OUT= option on PROC REPORT will put the data into a data set that will likely have a page interval variable but I haven't tested that assumption.


ballardw
Super User

"Page", as in print size depends on factors like actual page size; margins settings (top, bottom, left, right); each line height and number of characters printed in a line depend on font and font weight (bold typically take more space than normal) not to mention interval spacing such as single, double or other between line space settings.

 

ANY change to the above means that a data set "page" interval is nearly meaningless. You might get something to work for a single data set but I wouldn't bet on it, partially as you have not actually mentioned what a "page" means to you.

Worry about appearance of output with specific output procedures, provide example data and what you need for output.

Or search this forum and other SAS sites for Proc Report, Proc Tabulate and Proc Print output examples. SAS provides multiple ways to group related values of variables to provide pagination.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 2 replies
  • 1112 views
  • 0 likes
  • 3 in conversation