BookmarkSubscribeRSS Feed
keen_sas
Quartz | Level 8
I have 100 observations in data set and i want to prepare a listing for this data set using proc report .I want a page break for 10 or 20 observations for each page .How can i break the page for 10 or 20 observations using proc report ( in pdf output using ods )?

Thanks in advance for your replies
2 REPLIES 2
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
The SAS support website http://support.sas.com/ has SAS hosted documentation and supplemental technical conference (SGF and SUGI) papers. I used the website SEARCH facility and found this conference paper which reference on using BREAK with the PAGE option.

Scott Barry
SBBWorks, Inc.


Beyond the Basics: Advanced PROC REPORT Tips and Tricks
Allison McMahill, SAS Institute Inc., Cary, NC

http://support.sas.com/rnd/papers/sgf07/sgf2007-report.pdf


PROC REPORT:
Compute Block Basics – Part I Tutorial
Arthur L. Carpenter
California Occidental Consultants

http://www2.sas.com/proceedings/forum2008/031-2008.pdf
Cynthia_sas
SAS Super FREQ
Hi:
Basically, PROC REPORT needs a GROUP or ORDER variable that represents the place where break processing should occur. So you can either create your own "fake" page break variable or you could use a BY statement (every BY group starts a new page) or you could use the obs= option, as shown in this forum posting:
http://support.sas.com/forums/thread.jspa?messageID=15692㵌
(this person wanted to suppress page numbers on the first page of the report, but the same OBS= and FIRSTOBS= technique would also work for what you want.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 699 views
  • 0 likes
  • 3 in conversation