BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi ,

I'm using code below for my report and willing to get all the report in one page. I'm also using NOBYLINE statement in my option to suppress the page break for each by group but doesn't work. Can someone let me know where I'm going wrong?

options nobyline;
proc print data=info split='*';
by centerno ;
ID centerno gender;
var race age;
Run;


Thanks for your time.

Regards,
Matt
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
The option NOBYLINE does not suppress page breaks, it only suppresses the SAS-generated BY statement variable/value combinations you normally find with PROC PRINT.

To suppress (or at least reduce) the SAS-generated pagination event, you can set OPTIONS PAGESIZE=MAX; in your SAS program prior to the PROC PRINT invocation.

WARNING: If you are using ODS HTML, however, you will have a different challenge with pagination.

Scott Barry
SBBWorks, Inc.

Recommended Google advanced search argument for topic-related references:

nobyline site:sas.com
Peter_C
Rhodochrosite | Level 12
SASMatt
that is very few columns!
How wide are they? What variable lengths and formats have they.
To check a number of printing options, please post the log reported when you submit this code:
proc options group = listcontrol ;run;


PeterC
Cynthia_sas
SAS Super FREQ
If you are using ODS PDF or ODS RTF, you can suppress page breaks by using the STARTPAGE=NO option:

[pre]
ods pdf file='c:\temp\nobr.pdf' startpage=no;
ods rtf file='c:\temp\nobr.rtf' startpage=no;
...rest of code;
ods _all_ close;
[/pre]

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!

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